mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
clamav - adjust max filesize conditionally
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
3a691aa9a2
commit
66dc0bc7d6
5 changed files with 25 additions and 10 deletions
|
|
@ -1,14 +1,13 @@
|
|||
# syntax=docker/dockerfile:latest
|
||||
# Probably from this file: https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.1/alpine/Dockerfile
|
||||
# Probably from this file: https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.3/alpine/Dockerfile
|
||||
FROM clamav/clamav:1.3.1-59
|
||||
|
||||
COPY clamav.conf /tmp/clamav.conf
|
||||
COPY clamav.conf /clamav.conf
|
||||
COPY --chmod=775 start.sh /start.sh
|
||||
|
||||
RUN set -ex; \
|
||||
apk upgrade --no-cache -a; \
|
||||
apk add --no-cache tzdata; \
|
||||
cat /tmp/clamav.conf >> /etc/clamav/clamd.conf; \
|
||||
rm /tmp/clamav.conf; \
|
||||
apk add --no-cache tzdata bash; \
|
||||
mkdir -p /var/run/clamav /run/lock; \
|
||||
chown -R clamav:clamav /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock; \
|
||||
chmod 777 -R /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock /tmp
|
||||
|
|
@ -18,3 +17,5 @@ VOLUME /var/lib/clamav
|
|||
USER clamav
|
||||
|
||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue