By using a dedicated start script instead of npm start when running Docker images, we can avoid issues with passing signals through to the underlying processes.
This also avoids issues with npm requiring write permissions to the root filesystem.
This PR also changes the Dockerfile to ensure repeated local Docker builds are speed up by avoiding extra runs of npm install when not needed.
By using a dedicated start script instead of
npm start
when running Docker images, we can avoid issues with passing signals through to the underlying processes.This also avoids issues with
npm
requiring write permissions to the root filesystem.This PR also changes the Dockerfile to ensure repeated local Docker builds are speed up by avoiding extra runs of
npm install
when not needed.Connects https://github.com/pelias/pelias/issues/745