FROM node:22 AS builder WORKDIR /app ENV NEXT_TELEMETRY_DISABLED=1 COPY package*.json ./ RUN npm install COPY . . RUN npm run build FROM gcr.io/distroless/nodejs22 AS production ENV NEXT_TELEMETRY_DISABLED=1 COPY --from=builder /app/next.config.mjs ./ COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static ENV HOSTNAME="0.0.0.0" CMD ["./server.js"]