From 1fe1b9fd0b68db7c965594449f57ce87410110d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?PROFERIS=20-=20Mi=C2=B3osz=20Stocki?= Date: Tue, 7 Jul 2026 15:14:46 +0200 Subject: [PATCH] proper shutdown signalling --- deploy/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/Dockerfile b/deploy/Dockerfile index fb86716..e92561a 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -9,5 +9,8 @@ COPY web/ ./web/ # Expose a random non-standard port EXPOSE 8421 +# Python's http.server gracefully exits on SIGINT (Ctrl+C) rather than SIGTERM +STOPSIGNAL SIGINT + # Run the python HTTP server CMD ["python", "-m", "http.server", "8421"]