diff --git a/Dockerfile b/Dockerfile index d21eb0a..60e8a81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,8 @@ MAINTAINER "f " COPY ./build.sh /usr/local/bin/build RUN chmod 755 /usr/local/bin/build -RUN echo 'https://alpine.sutty.nl/alpine/v3.12/sutty' >> /etc/apk/repositories +RUN echo "${ALPINE_VERSION}" | cut -d . -f 1,2 | xargs -I {} echo 'https://alpine.sutty.nl/alpine/v{}/sutty' >> /etc/apk/repositories RUN wget https://alpine.sutty.nl/alpine/sutty.pub -O /etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub -RUN apk update || true USER builder ENTRYPOINT /usr/local/bin/build