Spaces:
Sleeping
Sleeping
Commit
·
c002af6
1
Parent(s):
803ded1
fix(docker): run next directly with -H and -p to avoid npm usage exit
Browse files- 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 |
-
|
|
|
|
|
|
| 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}"]
|