Skip to content

Commit d9c3894

Browse files
committed
🔄 Synced local '.' with remote 'apps/examples/nextjs'
1 parent a0cde92 commit d9c3894

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ COPY . .
2424

2525
# This should be replaced with an actual secret in production.
2626
# REVIEW: Can we make this not required during build?
27-
ENV AUTH_SECRET dummy
28-
RUN npm run build
27+
RUN AUTH_SECRET=dummy npm run build
2928

3029
# Production image, copy all the files and run next
3130
FROM base AS runner
@@ -57,4 +56,4 @@ ENV PORT 3000
5756

5857
# server.js is created by next build from the standalone output
5958
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
60-
CMD node server.js
59+
CMD HOSTNAME="0.0.0.0" node server.js

0 commit comments

Comments
 (0)