From 445d02e012c10f8f6f6c26281a66687aa014a254 Mon Sep 17 00:00:00 2001 From: Rayen Khammar Date: Tue, 17 Nov 2026 11:41:43 +0100 Subject: [PATCH] :bug: Reap zombie Chromium processes in the exporter container (#12969) * :bug: Reap zombie Chromium processes in the exporter container The exporter runs node as PID 1 with no init process. Chromium helper processes orphaned when Playwright closes a browser are re-parented to node, which never reaps them, so every browser-based export left defunct chrome-headless processes behind. Enable init for the exporter service so Docker's built-in init runs as PID 1, reaps the orphans and forwards signals to node. Closes #10339 Signed-off-by: Rayen Khammar * :bug: Move zombie reaping fix into the exporter image Install tini and run it as the image entrypoint with -s, so orphaned Chromium helpers are reaped in every deployment, including Kubernetes. -s keeps tini working without a warning when it runs under docker-init (init: true). Drop the compose init: true change to keep one mechanism. Signed-off-by: Rayen Khammar --------- Signed-off-by: Rayen Khammar --- docker/images/Dockerfile.exporter | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/images/Dockerfile.exporter b/docker/images/Dockerfile.exporter index 18aacb9ace..3d3b97b3de 100644 --- a/docker/images/Dockerfile.exporter +++ b/docker/images/Dockerfile.exporter @@ -17,6 +17,7 @@ RUN set -ex; \ locales \ ca-certificates \ gzip \ + tini \ ; \ apt-get clean; \ rm -rf /var/lib/apt/lists/*; \ @@ -126,4 +127,5 @@ RUN ./setup && chown -R penpot:penpot /opt/penpot/exporter USER penpot:penpot +ENTRYPOINT ["/usr/bin/tini", "-s", "--"] CMD ["node", "app.js"]