Dockerfile 528 B

12345678910111213141516171819202122232425
  1. FROM alpine:3.20
  2. LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
  3. RUN apk upgrade --no-cache \
  4. && apk add --update --no-cache \
  5. rsync \
  6. clamav \
  7. bind-tools \
  8. bash \
  9. tini
  10. # init
  11. COPY clamd.sh /clamd.sh
  12. RUN chmod +x /sbin/tini
  13. # healthcheck
  14. COPY healthcheck.sh /healthcheck.sh
  15. COPY clamdcheck.sh /usr/local/bin
  16. RUN chmod +x /healthcheck.sh
  17. RUN chmod +x /usr/local/bin/clamdcheck.sh
  18. HEALTHCHECK --start-period=6m CMD "/healthcheck.sh"
  19. ENTRYPOINT []
  20. CMD ["/sbin/tini", "-g", "--", "/clamd.sh"]