forked from is-cool-me/dnscontrol-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine:3.20.0@sha256:77726ef6b57ddf65bb551896826ec38bc3e53f75cdde31354fbffb4f25238ebd
LABEL repository="https://github.com/is-cool-me/dnscontrol-action"
LABEL maintainer="light <admin@lighthosting.eu.org>"
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"
ENV DNSCONTROL_VERSION="4.11.0"
ENV DNSCONTROL_CHECKSUM="71a35bf310d0f6ec76be0e444ede6b085af0d6487b2974a657be96ac3012ec18"
ENV USER=dnscontrol-user
RUN apk -U --no-cache upgrade && \
apk add --no-cache bash ca-certificates curl libc6-compat tar
RUN addgroup -S dnscontrol-user && adduser -S dnscontrol-user -G dnscontrol-user --disabled-password
RUN curl -sL "https://github.com/StackExchange/dnscontrol/releases/download/v${DNSCONTROL_VERSION}/dnscontrol_${DNSCONTROL_VERSION}_linux_amd64.tar.gz" \
-o dnscontrol && \
echo "$DNSCONTROL_CHECKSUM dnscontrol" | sha256sum -c - && \
tar xvf dnscontrol
RUN chown dnscontrol-user:dnscontrol-user dnscontrol
RUN chmod +x dnscontrol && \
chmod 755 dnscontrol && \
cp dnscontrol /usr/local/bin/dnscontrol
RUN ["dnscontrol", "version"]
COPY README.md entrypoint.sh bin/filter-preview-output.sh /
ENTRYPOINT ["/entrypoint.sh"]