From 7d53c0c37b1d79c324baed02ee00e747f04ab85f Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 14 Sep 2025 06:11:38 +0200 Subject: [PATCH] =?UTF-8?q?Le=20conteneur=20restera=20en=20vie=20mais=20se?= =?UTF-8?q?ra=20clairement=20identifi=C3=A9=20comme=20d=C3=A9faillant.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5c4b2ff..7465a47 100755 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,6 @@ RUN python3 -m venv /app/venv && \ mkdir -p /app/logs HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD pgrep python > /dev/null && ! (tail -n 1000 $(ls -t /app/logs/*.log 2>/dev/null | head -1) 2>/dev/null | grep -iE "(ERROR|CRITICAL|Exception|sqlite3\.OperationalError)") || (echo "Healthcheck échoué, arrêt du conteneur" && pkill -TERM -f python && sleep 2 && pkill -KILL -f python) + CMD pgrep python > /dev/null && ! (tail -n 1000 $(ls -t /app/logs/*.log 2>/dev/null | head -1) 2>/dev/null | grep -iE "(ERROR|CRITICAL|Exception|sqlite3\.OperationalError)") CMD ["/start.sh"]