From dabe42549991619789485fa0841954d9f5db8b60 Mon Sep 17 00:00:00 2001 From: Brock Vojkovic Date: Sat, 22 Feb 2025 22:22:30 +0000 Subject: [PATCH] [feat] add HEALTHCHECK in Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2a4d39591..b353db102 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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