From d2e45fb6c9c2c2b9cf382c0845403d276edbeb61 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Wed, 26 Aug 2026 12:14:10 +0200 Subject: [PATCH] =?UTF-8?q?Containerfile:=20STOPSIGNAL=20SIGINT=20s=C3=A5?= =?UTF-8?q?=20waitress=20avslutter=20rent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit podman stop tok 10 s og endte i SIGKILL fordi waitress ignorerer SIGTERM som PID 1. Med SIGINT stopper containeren på under et halvt sekund. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JcEy43fNYpwg6K6oTKakWR --- Containerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Containerfile b/Containerfile index e67a3b1..77cb08f 100644 --- a/Containerfile +++ b/Containerfile @@ -31,5 +31,7 @@ ENV PATH="/app/.venv/bin:$PATH" \ PYTHONUNBUFFERED=1 VOLUME /data EXPOSE 8080 +# waitress avslutter rent på SIGINT; SIGTERM ignoreres når den kjører som PID 1. +STOPSIGNAL SIGINT HEALTHCHECK --interval=30s --timeout=3s CMD curl -fsS http://localhost:8080/ >/dev/null || exit 1 CMD ["soapbox", "serve"]