1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
2023-08-08 11:41:30 -04:00

18 lines
597 B
Docker

# syntax = docker/dockerfile:1.4
FROM alpine:3.18.2@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 as RUN
# Add runtime dependencies
# - tzdata: Go time required external dependency eg: TRANSIP and possibly others
# - ca-certificates: Needed for https to work properly
RUN --mount=type=cache,target=/var/cache/apk apk update
RUN --mount=type=cache,target=/var/cache/apk apk add --no-cache tzdata ca-certificates
RUN --mount=type=cache,target=/var/cache/apk update-ca-certificates
COPY dnscontrol /usr/local/bin/
WORKDIR /dns
ENTRYPOINT ["/usr/local/bin/dnscontrol"]