dnscontrol-action/Dockerfile

27 lines
1 KiB
Docker
Raw Permalink Normal View History

FROM alpine:3.17.2@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a
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"
2023-05-12 03:08:22 +08:00
ENV DNSCONTROL_VERSION="3.31.4"
ENV DNSCONTROL_CHECKSUM="054d236531df2674c9286279596f88f02c1cf7b1448dc5f643f1a1dbe705fe8d"
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"]