coredns-custom/Dockerfile
Djeeberjr 6e8a51b287
All checks were successful
continuous-integration/drone/push Build is passing
different way to insert plugin.cfg
2022-04-03 22:43:07 +02:00

22 lines
495 B
Docker

FROM golang:1.17 as build
RUN git clone https://github.com/coredns/coredns.git /coredns
COPY plugin.cfg /coredns/plugin.cfg.new
RUN mv /coredns/plugin.cfg.new /coredns/plugin.cfg
RUN cd /coredns && make
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"]