# Build stage FROM node:22-alpine AS builder WORKDIR /app # Copy dependency definitions and install COPY package*.json ./ RUN npm ci # Copy source files and compile static bundle COPY . . RUN npm run build # Production runtime stage FROM nginx:alpine COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=builder /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]