From 4be274b65340ef06c0388cd7fc548286a5bfbeac Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 30 Jul 2024 22:43:15 +0200 Subject: [PATCH] make curl in healthcheck silent --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d50c5dc..e12698e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN pip install --no-cache-dir --break-system-packages -r requirements.txt EXPOSE 5000 HEALTHCHECK --interval=5s --timeout=3s \ - CMD curl -f http://localhost:5000/health || exit 1 + CMD curl -s -f http://localhost:5000/health || exit 1 #CMD [ "python3", "-m" , "flask", "run", "--port", "5000", "--host", "0.0.0.0"] CMD [ "python3", "-m" , "gunicorn", "app:app", "-c", "gunicorn_config.py"]