Skip to content

Commit 805ca95

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 d963389 commit 805ca95

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
@@ -51,14 +51,14 @@ RUN --mount=type=tmpfs,target=/var/log \
5151
echo "debconf debconf/frontend select Teletype" | debconf-set-selections; \
5252
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install gnupg sudo curl fping locales \
5353
ca-certificates rsync \
54-
cmake g++ pkg-config patch \
55-
libxslt-dev libcurl4-openssl-dev \
56-
libssl-dev libyaml-dev libtool \
54+
patch \
55+
libcurl4-openssl-dev \
56+
libssl-dev libyaml-dev \
5757
libpcre3 libpcre3-dev zlib1g zlib1g-dev \
58-
libxml2-dev gawk parallel \
58+
gawk \
5959
libreadline-dev anacron wget \
6060
psmisc whois brotli libunwind-dev \
61-
libtcmalloc-minimal4 cmake \
61+
libtcmalloc-minimal4 \
6262
pngcrush pngquant ripgrep poppler-utils \
6363
# imagemagick runtime dependencies
6464
libheif1 libjbig0 libtiff6 libpng16-16 libfontconfig1 \

0 commit comments

Comments
 (0)