-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (41 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM alpine:3.19
LABEL maintainer = "Sébastien Poher <[email protected]>"
LABEL name = "ClamAV dockerized for AgentJ SaaS"
LABEL description = "Starts local ClamAV as remote TCP AV scanner"
RUN apk --no-cache add \
unarj \
bzip2 \
ca-certificates \
cabextract \
"clamav>=1.2.2-r0" \
"clamav-clamdscan>=1.2.2-r0" \
"clamav-db>=1.2.2-r0" \
"clamav-daemon>=1.2.2-r0" \
"clamav-libunrar>=1.2.2-r0" \
"clamav-milter>=1.2.2-r0" \
"clamav-scanner>=1.2.2-r0" \
cpio \
dcron \
file \
freshclam \
gpg-agent \
gzip \
iproute2 \
pax-utils \
rsyslog \
supervisor \
tzdata \
unzip \
zip
COPY conf/supervisor/supervisord.conf /etc/supervisord.conf
COPY conf/clamav/clamd.conf /etc/clamav/clamd.conf
COPY conf/cron/freshclam /etc/cron.d/freshclam
COPY entrypoint.sh /entrypoint.sh
COPY healthcheck.sh /healthcheck.sh
RUN /usr/bin/freshclam --log=/var/log/clamav/freshclam.log \
--daemon-notify=/etc/clamav/clamd.conf \
--config-file=/etc/clamav/freshclam.conf
EXPOSE 3310/tcp
CMD [ "supervisord", "-c", "/etc/supervisord.conf" ]
ENTRYPOINT [ "/entrypoint.sh" ]
HEALTHCHECK --start-period=60s CMD [ "/healthcheck.sh" ]