Commit 897d3de0 authored by 神楽坂玲奈's avatar 神楽坂玲奈

Update Dockerfile

parent 8a73b3b3
Pipeline #15976 failed with stages
in 16 seconds
...@@ -9,11 +9,18 @@ RUN export DEBCONF_NONINTERACTIVE_SEEN=true \ ...@@ -9,11 +9,18 @@ RUN export DEBCONF_NONINTERACTIVE_SEEN=true \
apt-get -yyqq upgrade ; \ apt-get -yyqq upgrade ; \
apt-get -yyqq install ca-certificates ; \ apt-get -yyqq install ca-certificates ; \
apt-get clean apt-get clean
FROM golang:1.18 as builder
WORKDIR /v
COPY . .
RUN echo 'alternate:github.com/coredns/alternate' >> plugin.cfg
RUN make
FROM scratch FROM scratch
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ADD coredns /coredns COPY --from=builder /v/coredns /coredns
EXPOSE 53 53/udp EXPOSE 53 53/udp
ENTRYPOINT ["/coredns"] ENTRYPOINT ["/coredns"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment