FROM node:20-alpine WORKDIR /app # Next.js standalone runtime. Required because the contact form's Server # Action (sendEmail.ts, SMTP via nodemailer) needs a live Node process - # it cannot run under static/nginx serving. ENV NODE_ENV=production ENV PORT=3000 ENV HOSTNAME=0.0.0.0 # Copy the standalone build artifact (server.js, .next/, public/) COPY build /app EXPOSE 3000 CMD ["node", "server.js"]