2022-08-12 16:08:16 -04:00
|
|
|
# syntax = docker/dockerfile:1.4
|
2022-06-03 16:39:57 +02:00
|
|
|
|
2023-08-08 11:41:30 -04:00
|
|
|
FROM alpine:3.18.2@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 as RUN
|
|
|
|
|
2022-06-15 17:17:44 -03:00
|
|
|
|
2023-06-12 14:27:58 +03:00
|
|
|
# Add runtime dependencies
|
|
|
|
# - tzdata: Go time required external dependency eg: TRANSIP and possibly others
|
|
|
|
# - ca-certificates: Needed for https to work properly
|
2023-08-08 11:41:30 -04:00
|
|
|
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
|
2022-06-15 17:17:44 -03:00
|
|
|
|
2022-08-12 16:08:16 -04:00
|
|
|
COPY dnscontrol /usr/local/bin/
|
2022-06-15 17:17:44 -03:00
|
|
|
|
|
|
|
WORKDIR /dns
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/dnscontrol"]
|