From b476118514426fb035b90737a85b6b9a8ff5c3ec Mon Sep 17 00:00:00 2001 From: Lukas Elsner Date: Wed, 15 Jan 2020 08:29:39 -0500 Subject: [PATCH] remove not needed log files after build --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f5069443..bd8632c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -133,7 +133,8 @@ RUN echo "0 */6 * * * clamav /usr/bin/freshclam --quiet" > /etc/cron.d/clamav-fr sed -i 's/Foreground false/Foreground true/g' /etc/clamav/clamd.conf && \ sed -i 's/AllowSupplementaryGroups false/AllowSupplementaryGroups true/g' /etc/clamav/clamd.conf && \ mkdir /var/run/clamav && \ - chown -R clamav:root /var/run/clamav + chown -R clamav:root /var/run/clamav && \ + rm -rf /var/log/clamav/ # Configures Dovecot COPY target/dovecot/auth-passwdfile.inc target/dovecot/??-*.conf /etc/dovecot/conf.d/