2022-10-08 15:55:40 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2021-11-04 15:22:12 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
# clamav image
|
|
|
|
FROM base
|
2021-11-04 15:22:12 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
ARG VERSION=local
|
2021-11-17 22:00:04 +02:00
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
RUN set -euxo pipefail \
|
|
|
|
; apk add --no-cache clamav clamav-libunrar rsyslog wget
|
2016-05-29 15:54:02 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
COPY conf/ /etc/clamav/
|
|
|
|
COPY start.py /
|
|
|
|
|
|
|
|
RUN echo $VERSION >/version
|
2016-05-29 15:54:02 +02:00
|
|
|
|
2023-01-04 20:19:43 +02:00
|
|
|
#EXPOSE 3310/tcp
|
2023-06-28 10:33:04 +02:00
|
|
|
HEALTHCHECK CMD kill -0 `cat /run/clamd.pid` && kill -0 `cat /run/freshclam.pid`
|
2022-10-08 15:55:40 +02:00
|
|
|
|
2018-09-28 17:12:50 +02:00
|
|
|
VOLUME ["/data"]
|
2018-04-21 14:46:01 +02:00
|
|
|
|
2018-10-22 17:01:59 +02:00
|
|
|
CMD /start.py
|