add set -ex and remove tmp conf

Co-authored-by: Simon L. <szaimen@e.mail.de>
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey 2023-05-03 17:02:43 +02:00 committed by GitHub
parent fbc4b9cabb
commit c9e406f76c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"