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.
This commit is contained in:
Siddharth Kumar Sah
2026-04-10 00:54:03 +08:00
parent 1e2ef52846
commit e55253dee0
+1 -2
View File
@@ -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"]