Honor configured DNS port for docker health check

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-02-23 13:16:54 +01:00
parent 70d8e10f38
commit 12b4af36ce

View File

@@ -112,6 +112,6 @@ RUN readelf -h /usr/bin/pihole-FTL || (echo "Error with local FTL binary" && ex
# Use the appropriate FTL Install stage based on the FTL_SOURCE build-arg
FROM ${FTL_SOURCE}-ftl-install AS final
HEALTHCHECK CMD dig +short +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1
HEALTHCHECK CMD dig -p ${FTLCONF_dns_port:-53} +short +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1
ENTRYPOINT ["start.sh"]