2023-05-03 23:03:04 +08:00
|
|
|
# Probably from this file: https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.1/alpine/Dockerfile
|
2023-05-02 21:01:31 +08:00
|
|
|
FROM clamav/clamav:1.1.0-1
|
2022-03-16 06:46:58 +08:00
|
|
|
|
2023-05-03 22:27:52 +08:00
|
|
|
COPY clamav.conf /tmp/clamav.conf
|
|
|
|
|
2023-05-03 23:02:43 +08:00
|
|
|
RUN set -ex; \
|
|
|
|
apk add --no-cache tzdata; \
|
|
|
|
cat /tmp/clamav.conf | tee -a /etc/clamav/clamd.conf; \
|
2023-06-07 20:50:35 +08:00
|
|
|
rm /tmp/clamav.conf; \
|
|
|
|
mkdir -p /var/run/clamav /run/lock; \
|
|
|
|
chown -R clamav:clamav /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock; \
|
2023-06-19 20:44:06 +08:00
|
|
|
chmod 777 -R /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock /tmp
|
2023-06-03 20:56:05 +08:00
|
|
|
|
2023-06-07 20:50:35 +08:00
|
|
|
VOLUME /var/lib/clamav
|
|
|
|
|
|
|
|
USER clamav
|
2023-06-03 20:56:05 +08:00
|
|
|
|
2023-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|