1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/monit/Dockerfile

22 lines
352 B
Docker
Raw Normal View History

2015-07-02 12:59:58 +02:00
#
# Dockerfile for monit
#
FROM alpine
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
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"]