Skip to content

Commit 1239d02

Browse files
committed
Remove unnecessary base dependencies that bloat layer size
This change reduces the layer for this `RUN` command from 1GB to 678MB as shown in the `docker history <image name>` output.
1 parent 5ed07ec commit 1239d02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

image/base/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ RUN --mount=type=tmpfs,target=/var/log \
4343
echo "debconf debconf/frontend select Teletype" | debconf-set-selections; \
4444
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install gnupg sudo curl fping locales \
4545
ca-certificates rsync \
46-
cmake g++ pkg-config patch \
47-
libxslt-dev libcurl4-openssl-dev \
48-
libssl-dev libyaml-dev libtool \
46+
patch \
47+
libcurl4-openssl-dev \
48+
libssl-dev libyaml-dev \
4949
libpcre3 libpcre3-dev zlib1g zlib1g-dev \
50-
libxml2-dev gawk parallel \
50+
gawk \
5151
libreadline-dev anacron wget \
5252
psmisc whois brotli libunwind-dev \
53-
libtcmalloc-minimal4 cmake \
53+
libtcmalloc-minimal4 \
5454
pngcrush pngquant ripgrep poppler-utils \
5555
# imagemagick runtime dependencies
5656
libheif1 libjbig0 libtiff6 libpng16-16 libfontconfig1 \

0 commit comments

Comments
 (0)