Skip to content

Commit 29dd6ba

Browse files
committed
fix: upgrade only on the minimal layer
Other layers build on top of minimal, so running the upgrade on the first minimal layer is enough. Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
1 parent 11240e7 commit 29dd6ba

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ ARG EXTENSIONS
2727
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES
2828
USER root
2929
RUN apt-get update && \
30-
apt-get upgrade -y && \
3130
apt-get install -y --no-install-recommends locales-all ${STANDARD_ADDITIONAL_POSTGRES_PACKAGES} ${EXTENSIONS} && \
3231
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
3332
rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/*
@@ -42,7 +41,6 @@ ENV PIP_BREAK_SYSTEM_PACKAGES=1
4241

4342
USER root
4443
RUN apt-get update && \
45-
apt-get upgrade -y && \
4644
apt-get install -y --no-install-recommends \
4745
# We require build-essential and python3-dev to build lz4 on arm64 since there isn't a pre-compiled wheel available
4846
build-essential python3-dev \

0 commit comments

Comments
 (0)