From f673f942837ad3b5e336a53a184b2dc904739013 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 30 Jul 2021 17:10:37 -0600 Subject: [PATCH] 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 --- build/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index 4bfc5f4..6180890 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -82,7 +82,7 @@ HEALTHCHECK \ # switch to node user, run entrypoint script by default USER 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 ARG INTERNAL_VERSION