Alpine 3.11.6

This commit is contained in:
f 2020-06-01 12:54:38 -03:00
parent bf1ebc9d2d
commit 0c07a45bd5

View file

@ -1,10 +1,7 @@
FROM sutty/monit-build:latest AS build
FROM alpine:3.11.6 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
FROM alpine:3.11.6
MAINTAINER "f <f@sutty.nl>"
# TODO: We don't want to receive lots of email, so we'll change this to
@ -12,8 +9,7 @@ MAINTAINER "f <f@sutty.nl>"
ENV EMAIL monit@sutty.nl
# Install monit and remove default config
RUN apk add --no-cache tini
COPY --from=build /usr/bin/monit /usr/bin/monit
RUN apk add --no-cache tini monit
COPY --from=build /usr/share/zoneinfo/UTC /etc/localtime
# Create directories
@ -28,6 +24,9 @@ RUN chmod 600 /etc/monitrc
# Allow access to the web GUI
EXPOSE 2812
# Sutty's repository
RUN echo 'https://alpine.sutty.nl/alpine/v3.11/sutty' >> /etc/apk/repositories
# Use tini as init
ENTRYPOINT ["/sbin/tini", "--"]