coredns: add
continuous-integration/drone/push Build is failing Details

master
eater 4 years ago
parent 7cd04fb54e
commit 4a208dc64f
Signed by: eater
GPG Key ID: AD2560A0F84F0759

@ -0,0 +1,13 @@
FROM d.xr.to/base AS builder
RUN xbps-remote go unbound-devel git make gcc
RUN mkdir -p /root/go/src/github.com/coredns
RUN git clone --depth=2 https://github.com/coredns/coredns.git /root/go/src/github.com/coredns/coredns
RUN cd /root/go/src/github.com/coredns/coredns && echo 'unbound:github.com/coredns/unbound' >> plugin.cfg && sed -i '/\(grpc\|route53\|azure\|clouddns\|k8s_external\|kubernetes\)\:/d' plugin.cfg && sed -i 's:CGO_ENABLED=\$(CGO_ENABLED)::' Makefile
RUN cd /root/go/src/github.com/coredns/coredns && go generate && make
FROM d.xr.to/base
RUN xbps-remote libunbound
COPY --from=builder /root/go/src/github.com/coredns/coredns/coredns coredns
COPY files/Corefile /config/Corefile
WORKDIR "/config"
CMD ["/coredns"]

@ -0,0 +1,5 @@
. {
unbound
cache
log
}
Loading…
Cancel
Save