From 30731652e3fe313e345a0e011d87a1a006f10ace Mon Sep 17 00:00:00 2001 From: f Date: Sun, 3 Oct 2021 20:42:17 -0300 Subject: [PATCH] add versioned repository --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 12e76ed..2609b77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 " # 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