Skip to content

Commit a9d85e3

Browse files
committed
Configure Dockerfile for production: disable Next.js telemetry, set environment variables for port and hostname.
1 parent f47c33e commit a9d85e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/web/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ FROM oven/bun:1.2.18-alpine AS runner
2222
WORKDIR /app
2323

2424
ENV NODE_ENV=production
25+
ENV NEXT_TELEMETRY_DISABLED=1
2526

2627
# Copy only necessary files
2728
COPY --from=builder /app/public ./public
@@ -30,6 +31,8 @@ COPY --from=builder /app/.next/static ./.next/static
3031

3132
EXPOSE 3000
3233

33-
# Next.js standalone build runs with node by default
34+
ENV PORT=3000
35+
ENV HOSTNAME="0.0.0.0"
36+
3437
CMD ["bun", "server.js"]
3538

0 commit comments

Comments
 (0)