1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-12-22 19:01:20 +00:00
dns/Dockerfile
Knut Ahlers 38f960df77
Move to bind instead of coredns
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-01-12 17:09:45 +01:00

23 lines
412 B
Docker

FROM alpine
LABEL maintainer Knut Ahlers <knut@ahlers.me>
COPY build.sh /src/
COPY requirements.txt /src/
RUN set -ex \
&& apk --no-cache add bash \
&& /src/build.sh
COPY . /src
WORKDIR /src
EXPOSE 53/udp 53
VOLUME ["/src/zones"]
HEALTHCHECK --interval=30s --timeout=5s \
CMD dig +short @localhost health.server.test TXT || exit 1
ENTRYPOINT ["/src/docker-entrypoint.sh"]
CMD ["named", "-g"]