From bf1ebc9d2d2f1469a01d8c0ecbaebb92202d0e67 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 20 Dec 2019 18:22:00 -0300 Subject: [PATCH] upgrade to alpine 3.11 have to patch monit because their use of vfork() is incompatible with musl --- Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d45bb3..b7903cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,10 @@ -FROM alpine:3.9 +FROM sutty/monit-build:latest AS build + +RUN apk add --no-cache tzdata +RUN echo /home/builder/packages/home > /etc/apk/repositories +RUN apk add --no-cache monit + +FROM alpine:3.11 MAINTAINER "f " # TODO: We don't want to receive lots of email, so we'll change this to @@ -6,7 +12,9 @@ MAINTAINER "f " ENV EMAIL monit@sutty.nl # Install monit and remove default config -RUN apk add --no-cache tini monit && rm /etc/monitrc +RUN apk add --no-cache tini +COPY --from=build /usr/bin/monit /usr/bin/monit +COPY --from=build /usr/share/zoneinfo/UTC /etc/localtime # Create directories RUN install -dm 2750 -o root -g root /etc/monit.d