# Builder stage FROM node:22 AS builder WORKDIR /app # COPY package*.json ./ COPY package.json ./ COPY package-lock.json ./ RUN npm install # RUN npm ci COPY . . RUN npm run build # Runner stage FROM nginx:alpine WORKDIR /usr/share/nginx/html RUN rm -rf ./* COPY --from=builder /app/dist . EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]