mirror of
https://github.com/Luzifer/dns.git
synced 2024-12-22 19:01:20 +00:00
Knut Ahlers
ee90549179
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>
20 lines
350 B
Docker
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"]
|