1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/monit/Dockerfile
2016-05-01 09:06:20 +08:00

22 lines
362 B
Docker

#
# Dockerfile for monit
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN apk add -U monit \
&& rm -rf /var/cache/apk/*
COPY monit /etc/monit
RUN chmod 600 /etc/monit/monitrc \
&& ln -sf /etc/monit/monitrc /etc/monitrc \
&& mkdir -p /var/lib/monit/events
VOLUME /etc/monit /var/lib/monit
EXPOSE 2812
CMD ["monit", "-Ic", "/etc/monitrc"]