FROM node:20-alpine AS builder WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npm run build FROM node:20-alpine AS runner RUN apk add --no-cache curl WORKDIR /app COPY package*.json ./ RUN npm ci --only=production COPY --from=builder /app/.next ./.next COPY --from=builder /app/dist ./dist CMD ["npm", "start"]