ARG ALPINE_VERSION=3.18.3 ARG BASE_IMAGE=gitea.nulo.in/sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} LABEL org.opencontainers.image.authors="f@sutty.nl" ARG MMMONIT_VERSION=0.2.1 ENV DATABASE_URL "/srv/mmmonit.sqlite3" RUN apk add --no-cache mmmonit~${MMMONIT_VERSION} daemonize COPY ./monit.conf /etc/monit.d/mmmonit.conf COPY ./mmmonitd.sh /usr/local/bin/mmmonitd EXPOSE 3000/tcp VOLUME /srv