20 lines
415 B
Docker
20 lines
415 B
Docker
FROM node:20-alpine
|
|
|
|
# Install essential production utilities
|
|
RUN apk add --no-cache curl libc6-compat
|
|
|
|
# Set standard production environment
|
|
ENV NODE_ENV=production
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
ENV PORT=3000
|
|
ENV HOSTNAME="0.0.0.0"
|
|
|
|
WORKDIR /app
|
|
|
|
# Create non-root user for security
|
|
RUN addgroup --system --gid 1001 nodejs && \
|
|
adduser --system --uid 1001 nextjs
|
|
|
|
# Expose the default Next.js port
|
|
EXPOSE 3000
|