# Multi-stage build for Angular frontend FROM node:24-alpine AS build WORKDIR /app # Copy package files COPY frontend/package*.json ./ # Install dependencies RUN npm ci # Copy source code COPY frontend/ ./ # Build for production RUN npm run build:prod # Final stage - nginx to serve static files FROM nginx:alpine # Copy built Angular app to nginx COPY --from=build /app/dist/frontend/browser /usr/share/nginx/html # Copy nginx configuration COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]