1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/monit/Dockerfile

22 lines
356 B
Docker
Raw Normal View History

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