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

22 lines
362 B
Docker
Raw Normal View History

2015-07-02 12:59:58 +02:00
#
# Dockerfile for monit
#
FROM alpine
2016-05-01 03:06:20 +02:00
MAINTAINER kev <noreply@easypi.info>
2015-07-02 12:59:58 +02:00
RUN apk add -U monit \
&& rm -rf /var/cache/apk/*
COPY monit /etc/monit
2015-07-02 15:29:08 +02:00
RUN 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"]