2022-10-08 15:55:40 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2021-11-04 14:22:12 +01:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
# clamav image
|
|
|
|
FROM base
|
2021-11-04 14:22:12 +01:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
ARG VERSION=local
|
2021-11-17 20:00:04 +00: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
|
|
|
|
2018-04-21 14:46:01 +02:00
|
|
|
EXPOSE 3310/tcp
|
2022-10-08 15:55:40 +02:00
|
|
|
HEALTHCHECK --start-period=350s CMD echo PING|nc localhost 3310|grep "PONG"
|
|
|
|
|
2018-09-28 17:12:50 +02:00
|
|
|
VOLUME ["/data"]
|
2018-04-21 14:46:01 +02:00
|
|
|
|
2018-10-22 18:01:59 +03:00
|
|
|
CMD /start.py
|