From 5d79e56bf0b6fed9ec83e264b4f9a40da9072d31 Mon Sep 17 00:00:00 2001 From: Casper Date: Sat, 18 Apr 2020 13:09:50 +0200 Subject: [PATCH 1/2] Cleanup obsolete file removal `/etc/cron.weekly/fstrim` does not exist, so no need to remove it. --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1202c9bb..524aa5ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -111,7 +111,6 @@ RUN \ rm -rf /usr/share/doc/* && \ touch /var/log/auth.log && \ update-locale && \ - rm -f /etc/cron.weekly/fstrim && \ rm -f /etc/postsrsd.secret && \ rm -f /etc/cron.daily/00logwatch From 78fd5b87604eece0c42373c26ebf258f1e91952f Mon Sep 17 00:00:00 2001 From: Casper Date: Sun, 19 Apr 2020 11:39:43 +0200 Subject: [PATCH 2/2] -f option removed from rm commands Let build fail, if file does not exist. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 524aa5ab..d3aa1db9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -111,8 +111,8 @@ RUN \ rm -rf /usr/share/doc/* && \ touch /var/log/auth.log && \ update-locale && \ - rm -f /etc/postsrsd.secret && \ - rm -f /etc/cron.daily/00logwatch + rm /etc/postsrsd.secret && \ + rm /etc/cron.daily/00logwatch RUN echo "0 */6 * * * clamav /usr/bin/freshclam --quiet" > /etc/cron.d/clamav-freshclam && \ chmod 644 /etc/clamav/freshclam.conf && \