Skip to content

fix: Dockerfile CMD uses correct entrypoint (dist/src/main)#3816

Merged
davidleomay merged 1 commit into
developfrom
fix/dockerfile-entrypoint
Jun 3, 2026
Merged

fix: Dockerfile CMD uses correct entrypoint (dist/src/main)#3816
davidleomay merged 1 commit into
developfrom
fix/dockerfile-entrypoint

Conversation

@davidleomay
Copy link
Copy Markdown
Member

NestJS compiles src/main.ts to dist/src/main.js (no rootDir in tsconfig).
The Dockerfile had CMD ["node", "dist/main.js"] which doesn't exist.

Fix: use CMD ["npm", "run", "start:prod"] which resolves to
node --max-old-space-size=6144 dist/src/main — correct path + memory limit.

Found during DEV cutover: container crashed with Cannot find module dist/main.js.

@davidleomay davidleomay requested a review from TaprootFreak as a code owner June 3, 2026 15:21
@davidleomay davidleomay merged commit 0359b5f into develop Jun 3, 2026
7 checks passed
@davidleomay davidleomay deleted the fix/dockerfile-entrypoint branch June 3, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant