From 0a044ccb22e2e1885ffabcede4f796f92f77912c Mon Sep 17 00:00:00 2001 From: Juan Ferrer Date: Mon, 10 Mar 2025 09:42:37 +0000 Subject: [PATCH] fix: Add tini to prevent zombie procs --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fc61d1b..2eba5c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,11 @@ COPY ctzcls-cups_1.1.0-2_amd64.deb /tmp/ RUN chmod a+x /tmp/ctzcls-cups_1.1.0-2_amd64.deb \ && dpkg -i /tmp/ctzcls-cups_1.1.0-2_amd64.deb +# Fix defunct processeses: https://github.com/jenkinsci/docker-inbound-agent/issues/51 +ENV TINI_VERSION v0.19.0 +RUN wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini \ + && chmod 755 /tini + # Printnatura WORKDIR /printnatura @@ -40,5 +45,5 @@ COPY \ ./ COPY sql sql -ENTRYPOINT ["/printnatura/entrypoint.sh"] +ENTRYPOINT ["/tini", "--", "/printnatura/entrypoint.sh"] CMD ["node", "main.js"]