Closed Al2Klimov closed 1 year ago
I like to be very explicit with package installation, so --no-install-suggests
and or --no-install-recommends
is my recommendation.
Just some formatting hints, what I like to do is:
RUN set -ex; \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends -y \
\
netcat \
curl \
\
&& \
rm -rf /var/lib/apt/lists/*
No one ever has thrown --no-install-suggests away.
so that everything works as expected. Contra: +100MB/33% image size. New packages:
bind9-dnsutils bind9-host bind9-libs dbus dirmngr dnsutils gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libapparmor1 libarchive13 libassuan0 libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdbi1 libdbus-1-3 libfstrm0 libgpgme11 libjansson4 libjson-c5 libksba8 libldb2 liblmdb0 libmaxminddb0 libnet-snmp-perl libnpth0 libpci3 libpopt0 libprotobuf-c1 libpython3-stdlib libradcli4 libsensors-config libsensors5 libsmbclient libsnmp-base libsnmp40 libtalloc2 libtdb1 libtevent0 liburiparser1 libuv1 libwbclient0 libwrap0 libxml2 pci.ids pinentry-curses psmisc python3 python3-gpg python3-ldb python3-minimal python3-samba python3-talloc python3-tdb python3.9 python3.9-minimal rpcbind samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient snmp sudo
Origin: https://github.com/Icinga/docker-icinga2/pull/83#issuecomment-1433039396
Additional new packages with all packages' recommendations (+12MB)