From e55253dee03f9e93187d50e0ffb66b423a1230c0 Mon Sep 17 00:00:00 2001 From: Siddharth Kumar Sah Date: Fri, 10 Apr 2026 00:54:03 +0800 Subject: [PATCH] fix: revert to npx tsx in CMD for pnpm compatibility node --import tsx requires tsx to be directly in node_modules/, but pnpm hoists it differently. npx tsx works because it resolves through pnpm's bin links. tini as PID 1 handles signal forwarding regardless. --- docker/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index e8d16570..41f2fa72 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -202,6 +202,5 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \ CMD curl -f http://localhost:1349/api/v1/health || exit 1 # tini as PID 1 for zombie reaping + signal forwarding -# node --import tsx replaces npx tsx to avoid npx eating signals ENTRYPOINT ["tini", "--", "entrypoint.sh"] -CMD ["node", "--import", "tsx", "apps/api/src/index.ts"] +CMD ["npx", "tsx", "apps/api/src/index.ts"]