1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +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
MAINTAINER kev <noreply@datageek.info>
RUN apk add -U monit \
&& rm -rf /var/cache/apk/*
2015-07-02 15:18:27 +02:00
&& mkdir -p /var/lib/monit/events
2015-07-02 12:59:58 +02:00
COPY monit /etc/monit
2015-07-02 15:29:08 +02:00
RUN chmod 600 /etc/monit/monitrc \
&& ln -sf /etc/monit/monitrc /etc/monitrc
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"]