Skip to content

Commit 064518e

Browse files
committed
feat(ubuntu): upgrade base image package during build
1 parent fef09e7 commit 064518e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

ubuntu/24.04-init/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM docker.io/ubuntu:24.04
33
RUN --mount=type=bind,source=extra-packages,target=/extra-packages \
44
set -ex ; \
55
export DEBIAN_FRONTEND=noninteractive ; \
6-
apt update ; \
6+
apt update ; apt upgrade -y ; \
77
apt install -y --no-install-recommends $(paste extra-packages) ; \
88
apt clean all ; \
99
rm -rf /var/lib/apt/lists/* /etc/ssh/ssh_host_*

ubuntu/24.04-toolbox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM docker.io/ubuntu:24.04
33
RUN --mount=type=bind,source=extra-packages,target=/extra-packages \
44
set -ex ; \
55
export DEBIAN_FRONTEND=noninteractive ; \
6-
apt update ; \
6+
apt update ; apt upgrade -y ; \
77
apt install -y --no-install-recommends $(paste extra-packages) ; \
88
apt clean all ; \
99
rm -rf /var/lib/apt/lists/*

ubuntu/26.04-init/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM docker.io/ubuntu:26.04
33
RUN --mount=type=bind,source=extra-packages,target=/extra-packages \
44
set -ex ; \
55
export DEBIAN_FRONTEND=noninteractive ; \
6-
apt update ; \
6+
apt update ; apt upgrade -y ; \
77
apt install -y --allow-remove-essential coreutils-from-gnu coreutils-from-uutils- ; \
88
apt install -y --no-install-recommends $(paste extra-packages) ; \
99
apt clean all ; \

ubuntu/26.04-toolbox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM docker.io/ubuntu:26.04
33
RUN --mount=type=bind,source=extra-packages,target=/extra-packages \
44
set -ex ; \
55
export DEBIAN_FRONTEND=noninteractive ; \
6-
apt update ; \
6+
apt update ; apt upgrade -y ; \
77
apt install -y --allow-remove-essential coreutils-from-gnu coreutils-from-uutils- ; \
88
apt install -y --no-install-recommends $(paste extra-packages) ; \
99
apt clean all ; \

0 commit comments

Comments
 (0)