1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-11-09 22:50:06 +00:00
dns/Dockerfile

29 lines
548 B
Text
Raw Normal View History

2018-01-30 22:26:44 +00:00
FROM golang:alpine
ARG COREDNS_VERSION=v1.0.5
2018-01-30 22:26:44 +00:00
ADD ./build.sh /usr/local/bin/build.sh
ADD ./cron_generate.go /src/cron_generate.go
2018-01-30 22:26:44 +00:00
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 ./requirements.txt /src/requirements.txt
RUN set -ex \
&& apk --no-cache add python3 \
&& pip3 install -r /src/requirements.txt
2018-01-30 22:26:44 +00:00
ADD . /src
WORKDIR /src
EXPOSE 53/udp 53
2018-01-30 22:26:44 +00:00
ENTRYPOINT ["/usr/local/bin/coredns"]
CMD ["--"]