upgrade to alpine 3.11

have to patch monit because their use of vfork() is incompatible with
musl
This commit is contained in:
f 2019-12-20 18:22:00 -03:00
parent 647adc5beb
commit bf1ebc9d2d
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -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 <f@sutty.nl>"
# TODO: We don't want to receive lots of email, so we'll change this to
@ -6,7 +12,9 @@ MAINTAINER "f <f@sutty.nl>"
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