upgrade to alpine 3.11
have to patch monit because their use of vfork() is incompatible with musl
This commit is contained in:
parent
647adc5beb
commit
bf1ebc9d2d
1 changed files with 10 additions and 2 deletions
12
Dockerfile
12
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 <f@sutty.nl>"
|
MAINTAINER "f <f@sutty.nl>"
|
||||||
|
|
||||||
# TODO: We don't want to receive lots of email, so we'll change this to
|
# 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
|
ENV EMAIL monit@sutty.nl
|
||||||
|
|
||||||
# Install monit and remove default config
|
# 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
|
# Create directories
|
||||||
RUN install -dm 2750 -o root -g root /etc/monit.d
|
RUN install -dm 2750 -o root -g root /etc/monit.d
|
||||||
|
|
Loading…
Reference in a new issue