[feat] add HEALTHCHECK in Dockerfile

This commit is contained in:
Brock Vojkovic 2025-02-22 22:22:30 +00:00 committed by Markus Heiser
parent f325f8a886
commit dabe425499

View File

@ -62,6 +62,8 @@ RUN su searxng -c "/usr/bin/python3 -m compileall -q searx" \
-o -name '*.svg' -o -name '*.ttf' -o -name '*.eot' \) \
-type f -exec gzip -9 -k {} \+ -exec brotli --best {} \+
HEALTHCHECK CMD wget --quiet --tries=1 --spider http://localhost:8080/healthz || exit 1
# Keep these arguments at the end to prevent redundant layer rebuilds
ARG LABEL_DATE=
ARG GIT_URL=unknown