1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-11-09 22:50:06 +00:00
dns/Dockerfile
Knut Ahlers 1b4eaebf46
Also expose 53/tcp
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-02-01 09:02:01 +01:00

20 lines
340 B
Docker

FROM golang:alpine
ADD ./build.sh /usr/local/bin/build.sh
RUN set -ex \
&& apk --no-cache add git bash \
&& bash /usr/local/bin/build.sh
FROM alpine
LABEL maintainer Knut Ahlers <knut@ahlers.me>
COPY --from=0 /go/bin/coredns /usr/local/bin/
ADD . /src
WORKDIR /src
EXPOSE 53/udp 53
ENTRYPOINT ["/usr/local/bin/coredns"]
CMD ["--"]