FROM node:18-alpine as builder WORKDIR /app COPY . . RUN npm install --include=dev RUN npm run build FROM node:18-alpine AS runner WORKDIR /app COPY --from=builder /app/.next/standalone . COPY --from=builder /app/public ./public COPY --from=builder /app/.next/static ./.next/static EXPOSE 3000 CMD ["node", "server.js"]