Bind Next.js to 0.0.0.0 in container

This commit is contained in:
2026-06-27 17:44:30 -05:00
parent 61b7540508
commit 3294471a94
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ FROM base AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV HOSTNAME=0.0.0.0
ENV PORT=3000 ENV PORT=3000
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs
+1 -1
View File
@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "HOSTNAME=0.0.0.0 PORT=3000 node server.js",
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {