2015-07-02 12:59:58 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for monit
|
|
|
|
#
|
|
|
|
|
2022-01-21 05:59:53 +02:00
|
|
|
FROM alpine:3
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2015-07-02 12:59:58 +02:00
|
|
|
|
2017-01-12 06:26:45 +02:00
|
|
|
RUN apk add --no-cache monit
|
2015-07-02 12:59:58 +02:00
|
|
|
|
2017-01-12 06:26:45 +02:00
|
|
|
COPY data /etc/monit
|
2015-07-02 15:29:08 +02:00
|
|
|
|
2017-01-12 06:26:45 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& chmod 600 /etc/monit/monitrc \
|
2015-07-02 15:34:09 +02:00
|
|
|
&& ln -sf /etc/monit/monitrc /etc/monitrc \
|
|
|
|
&& mkdir -p /var/lib/monit/events
|
2015-07-02 12:59:58 +02:00
|
|
|
|
|
|
|
VOLUME /etc/monit /var/lib/monit
|
2015-07-02 15:29:08 +02:00
|
|
|
|
2015-07-02 12:59:58 +02:00
|
|
|
EXPOSE 2812
|
|
|
|
|
2015-07-02 15:29:08 +02:00
|
|
|
CMD ["monit", "-Ic", "/etc/monitrc"]
|