mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-01 11:32:27 +08:00
f37b474708
Bumps clamav/clamav from 1.3.1-61 to 1.4.0-1. --- updated-dependencies: - dependency-name: clamav/clamav dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
26 lines
965 B
Docker
26 lines
965 B
Docker
# syntax=docker/dockerfile:latest
|
|
# Probably from this file: https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.3/alpine/Dockerfile
|
|
FROM clamav/clamav:1.4.0-1
|
|
|
|
COPY clamav.conf /clamav.conf
|
|
COPY --chmod=775 start.script /start.script
|
|
|
|
RUN set -ex; \
|
|
apk upgrade --no-cache -a; \
|
|
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; \
|
|
sed -i "/^set -eu/r /start.script" /init-unprivileged; \
|
|
rm /start.script; \
|
|
grep -q 'clamd --foreground &' /init-unprivileged; \
|
|
sed -i "s|clamd --foreground \&|clamd --foreground --config-file /tmp/clamd.conf \&|" /init-unprivileged; \
|
|
cat /init-unprivileged
|
|
|
|
VOLUME /var/lib/clamav
|
|
|
|
USER clamav
|
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|
|
|
|
ENTRYPOINT ["/init-unprivileged"]
|