blob: 31a332d7ae8ae8ec23b9cc1793df940d43936e5a [file] [log] [blame]
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01001FROM clamav/clamav:1.0.3_base
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01003LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
Matthias Andreas Benkarda515bc62023-11-18 16:44:25 +01004
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01005RUN apk upgrade --no-cache \
6 && apk add --update --no-cache \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01007 rsync \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01008 bind-tools \
9 bash
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010010
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011# init
12COPY clamd.sh /clamd.sh
13RUN chmod +x /sbin/tini
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010014
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010015# healthcheck
16COPY healthcheck.sh /healthcheck.sh
17RUN chmod +x /healthcheck.sh
18HEALTHCHECK --start-period=6m CMD "/healthcheck.sh"
19
20ENTRYPOINT []
21CMD ["/sbin/tini", "-g", "--", "/clamd.sh"]