From 95c5bb78ef4befaa558eef868f610c35133f961a Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Tue, 19 Aug 2025 14:09:01 +0200 Subject: [PATCH] Ensure signals are propagated to all nodejs processes Pass the `-g` flag to tini, so that when a signal is received (typically from k8s' pod lifecycle management) it gets propagated to all node.js processes that were spawned. This behavior is similar to Ctrl+C in a terminal: > In macOS, as in other Unix-like operating systems (like Linux and BSD), > when you press Ctrl+C in your terminal, the terminal driver sends the > SIGINT (Signal Interrupt) signal to the entire foreground process group, > not just the single process you might see running. Issue: CLDSRV-727 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2c8d8685d9..9c52da2e87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,6 +55,6 @@ COPY --from=builder /usr/src/app/node_modules ./node_modules/ VOLUME ["/usr/src/app/localData","/usr/src/app/localMetadata"] -ENTRYPOINT ["tini", "--", "/usr/src/app/docker-entrypoint.sh"] +ENTRYPOINT ["tini", "-g", "--", "/usr/src/app/docker-entrypoint.sh"] CMD [ "yarn", "start" ]