# Stage 1: Build FROM node:20-alpine AS builder WORKDIR /app/frontend COPY frontend/package*.json . RUN npm install COPY frontend/ . RUN npm run build # Stage 2: Serve FROM nginx:alpine COPY --from=builder /app/frontend/dist /usr/share/nginx/html COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 3013 CMD ["nginx", "-g", "daemon off;"]