2021-10-03 23:19:00 +00:00
|
|
|
ARG ALPINE_VERSION=3.13.6
|
|
|
|
ARG BASE_IMAGE=sutty/monit
|
|
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
2019-09-10 23:10:18 +00:00
|
|
|
MAINTAINER "f <f@sutty.nl>"
|
2020-07-27 19:41:02 +00:00
|
|
|
|
|
|
|
COPY ./build.sh /usr/local/bin/build
|
|
|
|
RUN chmod 755 /usr/local/bin/build
|
2021-11-16 13:18:54 +00:00
|
|
|
RUN echo "${ALPINE_VERSION}" | cut -d . -f 1,2 | xargs -I {} echo 'https://alpine.sutty.nl/alpine/v{}/sutty' >> /etc/apk/repositories
|
2020-07-27 19:41:02 +00:00
|
|
|
RUN wget https://alpine.sutty.nl/alpine/sutty.pub -O /etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub
|
2021-11-16 13:50:38 +00:00
|
|
|
# We need to update to the builder has access to installing packages
|
|
|
|
RUN apk update
|
2020-07-27 19:41:02 +00:00
|
|
|
|
|
|
|
USER builder
|
2021-11-16 14:52:12 +00:00
|
|
|
ENTRYPOINT ["/usr/local/bin/build"]
|
2021-11-16 14:43:34 +00:00
|
|
|
CMD ["abuild", "-r"]
|