mailcow/data/Dockerfiles/watchdog/Dockerfile

37 lines
757 B
Docker
Raw Normal View History

2019-02-05 00:01:31 +01:00
FROM alpine:3.9
2017-09-20 10:56:49 +02:00
LABEL maintainer "André Peters <andre.peters@servercow.de>"
# Installation
RUN apk add --update \
&& apk add --no-cache nagios-plugins-smtp \
nagios-plugins-tcp \
nagios-plugins-http \
nagios-plugins-ping \
curl \
bash \
coreutils \
jq \
fcgi \
nagios-plugins-mysql \
nagios-plugins-dns \
nagios-plugins-disk \
bind-tools \
redis \
perl \
perl-io-socket-ssl \
perl-io-socket-inet6 \
perl-socket \
perl-socket6 \
perl-mime-lite \
perl-term-readkey \
tini \
tzdata \
&& curl https://raw.githubusercontent.com/mludvig/smtp-cli/v3.9/smtp-cli -o /smtp-cli \
&& chmod +x smtp-cli
2017-09-20 10:56:49 +02:00
COPY watchdog.sh /watchdog.sh
ENTRYPOINT ["/sbin/tini", "-g", "--"]
2017-09-20 10:56:49 +02:00
# Less verbose
CMD /watchdog.sh 2> /dev/null