FROM alpine LABEL maintainer Knut Ahlers 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"]