Fix docker graceful shutdown (#830)

* run.sh: Replace pid with nodejs's one using exec

This notably ensures that "docker stop" sends a TERM signal to the node
process which can handle it gracefully and avoid document corruption.

* Use exec form for CMD in Dockerfile

---------

Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
This commit is contained in:
Florent
2024-01-30 16:00:59 +01:00
committed by GitHub
parent f45c53d7d4
commit 36ade2bfd0
2 changed files with 2 additions and 2 deletions

View File

@@ -142,4 +142,4 @@ ENV \
EXPOSE 8484
CMD ./sandbox/run.sh
CMD ["./sandbox/run.sh"]