mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
+1
-2
@@ -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
|
CMD curl -f http://localhost:1349/api/v1/health || exit 1
|
||||||
|
|
||||||
# tini as PID 1 for zombie reaping + signal forwarding
|
# tini as PID 1 for zombie reaping + signal forwarding
|
||||||
# node --import tsx replaces npx tsx to avoid npx eating signals
|
|
||||||
ENTRYPOINT ["tini", "--", "entrypoint.sh"]
|
ENTRYPOINT ["tini", "--", "entrypoint.sh"]
|
||||||
CMD ["node", "--import", "tsx", "apps/api/src/index.ts"]
|
CMD ["npx", "tsx", "apps/api/src/index.ts"]
|
||||||
|
|||||||
Reference in New Issue
Block a user