fix(docker): use pnpm exec instead of npx for airgapped environments (#67)

npx attempts to reach the npm registry even when tsx is installed
locally, causing the container to crash in airgapped/offline
environments with ECONNRESET. pnpm exec resolves tsx from local
node_modules only, with no network calls.

Closes #29

Co-authored-by: stirling-image <stirling-image@users.noreply.github.com>
This commit is contained in:
stirling-image
2026-04-14 15:44:45 +08:00
committed by GitHub
co-authored by stirling-image
parent bb11e086f9
commit 6352a5384e
+1 -1
View File
@@ -234,4 +234,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
# tini as PID 1 for zombie reaping + signal forwarding
ENTRYPOINT ["tini", "--", "entrypoint.sh"]
CMD ["npx", "tsx", "apps/api/src/index.ts"]
CMD ["pnpm", "exec", "tsx", "apps/api/src/index.ts"]