Skip to content

Commit

Permalink
Update dns.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 fdd67b6 commit a4fa883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dns.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ ENV NO_AUTOUPDATE=true
ENTRYPOINT ["tini", "--", "cloudflared", "--no-autoupdate", "--metrics", "localhost:9172", "proxy-dns", "--address", "0.0.0.0"]
CMD ["--upstream", "https://dns.adguard-dns.com/dns-query"]
HEALTHCHECK CMD ([ "$(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)" ] && curl -sI http://localhost:9172 -o /dev/null) || exit 1

EXPOSE 53/tcp
EXPOSE 53/udp

0 comments on commit a4fa883

Please sign in to comment.