From c9e406f76c47c09155cda082b327690d1228f462 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 3 May 2023 17:02:43 +0200 Subject: [PATCH] add set -ex and remove tmp conf Co-authored-by: Simon L. Signed-off-by: Zoey --- Containers/clamav/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Containers/clamav/Dockerfile b/Containers/clamav/Dockerfile index 23e61b66..680ba4ca 100644 --- a/Containers/clamav/Dockerfile +++ b/Containers/clamav/Dockerfile @@ -3,6 +3,8 @@ FROM clamav/clamav:1.1.0-1 COPY clamav.conf /tmp/clamav.conf -RUN apk add --no-cache tzdata; \ - tee -a /etc/clamav/clamd.conf < /tmp/clamav.conf +RUN set -ex; \ + apk add --no-cache tzdata; \ + cat /tmp/clamav.conf | tee -a /etc/clamav/clamd.conf; \ + rm /tmp/clamav.conf LABEL com.centurylinklabs.watchtower.monitor-only="true"