Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Apr 18, 2024
1 parent dacd44b commit 431b5b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ COPY --chown=nobody:nobody unbound.conf /etc/unbound/unbound.conf
USER nobody:nobody
ENTRYPOINT ["tini", "--", "unbound-control", "start"]
HEALTHCHECK CMD if [ "$(dig example.org IN A +short @127.0.0.1 | grep '^[0-9.]\+$' | sort | head -n1)" != "$(dig example.org IN A +short +https +tls-ca=/etc/ssl/certs/ca-certificates.crt @1.1.1.1 | grep '^[0-9.]\+$' | sort | head -n1)" ]; then unbound-control stop; fi || exit 1
EXPOSE 53/tcp
EXPOSE 53/udp

0 comments on commit 431b5b5

Please sign in to comment.