2022-04-03 14:35:28 +00:00
|
|
|
FROM golang:1.17 as build
|
|
|
|
|
|
|
|
RUN git clone https://github.com/coredns/coredns.git /coredns
|
|
|
|
|
2022-04-03 21:17:40 +00:00
|
|
|
COPY plugin.cfg /coredns/plugin.cfg
|
|
|
|
|
|
|
|
RUN ls -la /coredns && cat /coredns/plugin.cfg
|
2022-04-03 14:35:28 +00:00
|
|
|
|
2022-05-03 11:21:16 +00:00
|
|
|
WORKDIR /coredns
|
|
|
|
|
|
|
|
RUN go get git.kapelle.org/niklas/coredns-override && go generate && make
|
2022-04-03 14:35:28 +00:00
|
|
|
|
|
|
|
FROM debian:stable-slim as cert
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get -uy upgrade
|
|
|
|
RUN apt-get -y install ca-certificates && update-ca-certificates
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
|
|
|
|
COPY --from=cert /etc/ssl/certs /etc/ssl/certs
|
|
|
|
COPY --from=build /coredns/coredns /coredns
|
|
|
|
|
|
|
|
EXPOSE 53 53/udp
|
|
|
|
ENTRYPOINT ["/coredns"]
|