mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
co-authored by
stirling-image
parent
bb11e086f9
commit
6352a5384e
+1
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user