Dockerfile 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM alpine:3.21
  2. LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
  3. # Installation
  4. RUN apk add --update \
  5. && apk add --no-cache nagios-plugins-smtp \
  6. nagios-plugins-tcp \
  7. nagios-plugins-http \
  8. nagios-plugins-ping \
  9. mariadb-client \
  10. curl \
  11. bash \
  12. coreutils \
  13. jq \
  14. fcgi \
  15. openssl \
  16. nagios-plugins-mysql \
  17. nagios-plugins-disk \
  18. bind-tools \
  19. redis \
  20. perl \
  21. perl-net-dns \
  22. perl-io-socket-ssl \
  23. perl-io-socket-inet6 \
  24. perl-socket \
  25. perl-socket6 \
  26. perl-mime-lite \
  27. perl-term-readkey \
  28. tini \
  29. tzdata \
  30. whois \
  31. && curl https://raw.githubusercontent.com/mludvig/smtp-cli/v3.10/smtp-cli -o /smtp-cli \
  32. && chmod +x smtp-cli \
  33. && mkdir /usr/lib/mailcow
  34. COPY watchdog.sh /watchdog.sh
  35. COPY check_mysql_slavestatus.sh /usr/lib/nagios/plugins/check_mysql_slavestatus.sh
  36. COPY check_dns.sh /usr/lib/mailcow/check_dns.sh
  37. CMD ["/watchdog.sh"]