2024-02-16 23:21:18 +08:00
|
|
|
# syntax=docker/dockerfile:latest
|
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
|
2024-02-26 20:30:29 +08:00
|
|
|
FROM clamav/clamav:1.3.0-40
|
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; \
|
2023-09-28 02:53:14 +08:00
|
|
|
cat /tmp/clamav.conf >> /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"
|