fix(dockerfile): use tini to correct error code on exit

- node returns error on sigterm but this normal for docker termination
- coupled with javascript signal capture, tini ignores return 143,
reports 0
- allows for proper automatic restart since no error is reported
This commit is contained in:
Asif Bacchus 2021-07-30 17:10:37 -06:00
parent 5994f3b82e
commit f673f94283

View File

@ -82,7 +82,7 @@ HEALTHCHECK \
# switch to node user, run entrypoint script by default # switch to node user, run entrypoint script by default
USER node USER node
WORKDIR /home/node WORKDIR /home/node
ENTRYPOINT [ "/sbin/tini", "--", "/usr/local/bin/entrypoint.sh" ] ENTRYPOINT [ "/sbin/tini", "-e", "143", "--", "/usr/local/bin/entrypoint.sh" ]
# set build timestamp and version labels # set build timestamp and version labels
ARG INTERNAL_VERSION ARG INTERNAL_VERSION