Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Override Docker ENTRYPOINT so that PID 1 inside…
Browse files Browse the repository at this point in the history
the container is correctly assigned to `pm2-runtime`. See and #533
https://github.com/enketo/enketo-express/issues/531#issuecomment-1633255721
  • Loading branch information
jnm committed Jul 12, 2023
1 parent 40e58ac commit 9f4d9aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ VOLUME ${ENKETO_SRC_DIR}/setup/docker/secrets

EXPOSE 8005

CMD ${ENKETO_SRC_DIR}/setup/docker/start.sh
# Override the base image's ENTRYPOINT instead of passing arguments to it using
# CMD, and use the "exec form" to avoid spawning an intermediary shell.
# NB: Docker will not expand environment variables like ENKETO_SRC_DIR within
# the ENTRYPOINT instruction; see
# https://docs.docker.com/engine/reference/builder/#environment-replacement
ENTRYPOINT ["/srv/src/enketo_express/setup/docker/start.sh"]

0 comments on commit 9f4d9aa

Please sign in to comment.