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 ee90549179
Rebuild to use crond and pre-compiled binary
The build process of the binary patched with the cron runner was too
instable as coredns is not properly vendoring their dependencies. This
way the binary is stable (provided by coredns) and the cron is taken
over by alpine crond.

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-03-04 13:41:25 +01:00

20 lines
350 B
Docker

FROM alpine
LABEL maintainer Knut Ahlers <knut@ahlers.me>
ADD . /src
WORKDIR /src
RUN set -ex \
&& apk --no-cache add bash \
&& /src/build.sh
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 ["coredns"]