mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
22 lines
352 B
Docker
22 lines
352 B
Docker
#
|
|
# Dockerfile for monit
|
|
#
|
|
|
|
FROM alpine
|
|
MAINTAINER kev <noreply@easypi.pro>
|
|
|
|
RUN apk add --no-cache monit
|
|
|
|
COPY data /etc/monit
|
|
|
|
RUN set -xe \
|
|
&& 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"]
|