-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
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.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
LABEL repository="https://github.com/is-cool-me/dnscontrol-action"
LABEL maintainer="light <[email protected]>"
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.13.0"
ENV DNSCONTROL_CHECKSUM="103fe932785bbfef47bc798e815a2ee88057be9b0f9aff696373a4ab3accfe10"
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"]