This script uses exec to ensure the PID of the script is the PID of the PIP service later.
The Dockerfile is updated to use the script, so that containers can be shut down immediately by avoiding any intermediate processes that won't forward signals.
This script uses
exec
to ensure the PID of the script is the PID of the PIP service later.The Dockerfile is updated to use the script, so that containers can be shut down immediately by avoiding any intermediate processes that won't forward signals.
See https://github.com/npm/npm/issues/4603 Fixes https://github.com/pelias/pip-service/issues/61