Skip to content

Commit 0c9389a

Browse files
committed
Dockerfile: update to latest packages
The output from a Docker build might contain outdated Ubuntu packages, so get the latest packages installed. Refs #415
1 parent b6753c8 commit 0c9389a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
# https://github.com/davidfrantz/base_image
3131
FROM davidfrantz/base:latest AS internal_base
3232

33+
# Refresh package list & upgrade existing packages
34+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
35+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
36+
# Disable interactive frontends.
37+
export DEBIAN_FRONTEND=noninteractive && \
38+
apt-get -y update && apt-get -y upgrade
39+
3340
FROM internal_base AS force_builder
3441

3542
# Environment variables

0 commit comments

Comments
 (0)