dnscontrol-action/Dockerfile

27 lines
1 KiB
Text
Raw Normal View History

FROM alpine:3.16.0@sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c
2019-01-05 19:24:28 +08:00
LABEL repository="https://github.com/koenrh/dnscontrol-action"
LABEL maintainer="Koen Rouwhorst <info@koenrouwhorst.nl>"
LABEL "com.github.actions.name"="DNSControl"
LABEL "com.github.actions.description"="Deploy your DNS configuration to multiple providers."
LABEL "com.github.actions.icon"="cloud"
LABEL "com.github.actions.color"="yellow"
2022-08-13 05:22:45 +08:00
ENV DNSCONTROL_VERSION="3.18.1"
ENV DNSCONTROL_CHECKSUM="a8a2582b8bb4a32e70f3cabfdfea8b53c2a420bd1714332af15d52f69092fb21"
RUN apk -U --no-cache upgrade && \
2022-05-29 01:22:15 +08:00
apk add --no-cache bash ca-certificates curl libc6-compat
2022-05-29 01:22:15 +08:00
RUN curl -sL "https://github.com/StackExchange/dnscontrol/releases/download/v$DNSCONTROL_VERSION/dnscontrol-Linux" \
-o dnscontrol && \
echo "$DNSCONTROL_CHECKSUM dnscontrol" | sha256sum -c - && \
chmod +x dnscontrol && \
mv dnscontrol /usr/local/bin/dnscontrol
RUN ["dnscontrol", "version"]
2019-01-05 19:24:28 +08:00
2021-07-14 00:21:01 +08:00
COPY README.md entrypoint.sh bin/filter-preview-output.sh /
2019-01-05 19:24:28 +08:00
ENTRYPOINT ["/entrypoint.sh"]