Containerfile: STOPSIGNAL SIGINT så waitress avslutter rent
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JcEy43fNYpwg6K6oTKakWR
This commit is contained in:
parent
7ab2320be6
commit
d2e45fb6c9
1 changed files with 2 additions and 0 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue