Skip to content

Commit fb1db98

Browse files
committed
Remove zypper
Signed-off-by: Derek Nola <derek.nola@suse.com>
1 parent e698fca commit fb1db98

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

images/nginx/rootfs/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,18 @@ RUN zypper install -y --allow-vendor-change \
5151
grpc-devel \
5252
wget \
5353
which \
54-
git \
5554
libyajl2 \
5655
openssl-3 \
5756
libicu73_2 \
5857
liblua5_4-5 \
59-
make \
60-
tar \
61-
gzip \
6258
procps \
6359
catatonit
6460

61+
# Remove zypper and other unnecessary packages
62+
RUN zypper -n clean -a && rm -rf /tmp/* /var/tmp/* /usr/share/doc/packages && \
63+
rpm -e libsolv-tools-base zypper libzypp libaugeas0 libfa1 container-suseconnect \
64+
libyaml-cpp0_6 boost-license1_66_0 libboost_system1_66_0 libboost_thread1_66_0
65+
6566
RUN ldDirs=" \
6667
/usr/local/lib \
6768
/usr/local/lib64 \

0 commit comments

Comments
 (0)