ARG ALPINE_VERSION=3.13.6 ARG BASE_IMAGE=sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " COPY ./build.sh /usr/local/bin/build RUN chmod 755 /usr/local/bin/build 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 # We need to update to the builder has access to installing packages RUN apk update USER builder ENTRYPOINT /usr/local/bin/build CMD ["abuild", "-r"]