Dockerfile 438 B

123456789101112131415161718192021
  1. FROM clamav/clamav:0.105.1_base
  2. LABEL maintainer "André Peters <andre.peters@servercow.de>"
  3. RUN apk upgrade --no-cache \
  4. && apk add --update --no-cache \
  5. rsync \
  6. bind-tools \
  7. bash
  8. # init
  9. COPY clamd.sh /clamd.sh
  10. RUN chmod +x /sbin/tini
  11. # healthcheck
  12. COPY healthcheck.sh /healthcheck.sh
  13. RUN chmod +x /healthcheck.sh
  14. HEALTHCHECK --start-period=6m CMD "/healthcheck.sh"
  15. ENTRYPOINT []
  16. CMD ["/sbin/tini", "-g", "--", "/clamd.sh"]