diff --git a/Dockerfile b/Dockerfile index 4f7b626..d39f142 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ FROM base AS runner WORKDIR /app ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 +ENV HOSTNAME=0.0.0.0 ENV PORT=3000 RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs diff --git a/package.json b/package.json index 6f7b1d8..8418f93 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "next dev", "build": "next build", - "start": "next start", + "start": "HOSTNAME=0.0.0.0 PORT=3000 node server.js", "lint": "next lint" }, "dependencies": {