docker-monit/Dockerfile
ale f14cd1f1f8
Some checks failed
continuous-integration/drone/push Build is failing
.drone.yml
Signed-off-by: ale <ale@manalejandro.com>
2024-12-15 02:57:28 +01:00

25 lines
761 B
Docker

FROM alpine:3.20
LABEL maintainer="Luis Miguel Vicente Fuentes"
# monit environment variables
ENV MONIT_VERSION=5.34.3 \
MONIT_HOME=/opt/monit \
MONIT_URL=https://mmonit.com/monit/dist \
PATH=$PATH:/opt/monit/bin
# compile and install monit
RUN \
apk add --update gcc musl-dev make libressl-dev file zlib-dev curl libressl3.8-libssl libressl3.8-libcrypto && \
mkdir -p /opt/src; cd /opt/src && \
wget -qO- ${MONIT_URL}/monit-${MONIT_VERSION}.tar.gz | tar xz && \
cd /opt/src/monit-${MONIT_VERSION} && \
./configure --prefix=${MONIT_HOME} --without-pam && \
make && make install && \
apk del gcc musl-dev make libressl-dev file zlib-dev && \
rm -rf /var/cache/apk/* /opt/src
EXPOSE 2812
CMD ["monit", "-I", "-B"]