This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run strapi in the background so we can catch signals and properly shutdown strapi. Docker stop sends a SIGTERM which is ignored by strapi and causes Docker to kill the container (exit 137). This catches the SIGTERM and sends a SIGINT (CTRL-C) to strapi. We cannot use STOPSIGNAL in the Dockerfile as SIGINT is a signal that will not be passed to PID 1 (which is the wrapper-script).
- Loading branch information