PeterPinetree commited on
Commit
c002af6
·
1 Parent(s): 803ded1

fix(docker): run next directly with -H and -p to avoid npm usage exit

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -22,4 +22,5 @@ ENV HOST=0.0.0.0
22
  # Disable telemetry and ensure production env
23
  ENV NEXT_TELEMETRY_DISABLED=1
24
  ENV NODE_ENV=production
25
- CMD ["sh", "-c", "npm start -- -p ${PORT:-3000}"]
 
 
22
  # Disable telemetry and ensure production env
23
  ENV NEXT_TELEMETRY_DISABLED=1
24
  ENV NODE_ENV=production
25
+ # Run Next directly to avoid npm CLI usage output if args aren't forwarded
26
+ CMD ["sh", "-c", "node node_modules/next/dist/bin/next start -H 0.0.0.0 -p ${PORT:-3000}"]