From 8a5a1b7e7c085cef9aefdbccb15e722225d0c85c Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Fri, 27 Oct 2023 14:33:40 +0200 Subject: [PATCH] docker: remove unnecessary perl-base package from image Signed-off-by: Andras Timar Change-Id: I50321d563eff98bd6102a9ec4fa2ab2fdacf6dea --- docker/from-packages/Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docker/from-packages/Dockerfile b/docker/from-packages/Dockerfile index 90006a003515..3afcfc255415 100644 --- a/docker/from-packages/Dockerfile +++ b/docker/from-packages/Dockerfile @@ -108,14 +108,8 @@ RUN --mount=type=secret,id=secret_key \ fi && \ # Fix ownership of config directory that will be modified on start of the container by cool user chown cool:cool /etc/coolwsd && \ -# Remove packages that are not needed -# FIXME: long way to go, the commands below remove coolwsd, too. -# apt-get remove -y --allow-remove-essential adduser apt bsdutils debconf debian-archive-keyring debianutils \ -# diffutils dpkg e2fsprogs findutils gcc-10-base gcc-9-base gpgv grep gzip hostname init-system-helpers \ -# login logsave mawk mount ncurses-base ncurses-bin passwd perl-base sed sysvinit-utils tar util-linux \ -# cpio tzdata libcap2-bin apt-transport-https gnupg2 ca-certificates curl && \ -# apt-get remove -y --allow-remove-essential cpio tzdata libcap2-bin apt-transport-https gnupg2 ca-certificates curl \ -# mount e2fsprogs dpkg apt && \ +# Remove perl-base, it's not needed and triggered some license scanner because of Paul Hsieh derivative license + dpkg --purge --force-remove-essential --ignore-depends=perl-base perl-base && \ # Cleanup rm -rf /var/lib/apt/* && \ # Remove WOPI Proof key generated by the package, we need unique key for each container