add versioned repository

This commit is contained in:
f 2021-10-03 20:42:17 -03:00
parent 5c1bcb8bae
commit 30731652e3

View file

@ -10,10 +10,11 @@ RUN chmod 600 /etc/monitrc
RUN sed -re "s/@@EMAIL@@/${EMAIL}/" -i /etc/monitrc
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
ARG ALPINE_VERSION
MAINTAINER "f <f@sutty.nl>"
# Sutty's repository
RUN echo https://alpine.sutty.nl/alpine/v${ALPINE_VERSION%\.*}/sutty >> /etc/apk/repositories
RUN echo ${ALPINE_VERSION} | cut -d . -f 1,2 | xargs -I {} echo https://alpine.sutty.nl/alpine/v{}/sutty | tee -a /etc/apk/repositories
RUN wget https://alpine.sutty.nl/alpine/sutty.pub -O /etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub
# Install monit and remove default config