blob: 91716b84d3c1ea057372cdd434059ce76f50ccf0 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001FROM clamav/clamav:1.0_base
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002
3LABEL maintainer "André Peters <andre.peters@servercow.de>"
4
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"]