# Build stage FROM node:20-alpine AS build WORKDIR /app # Copy package files COPY package*.json ./ # Install all dependencies (including dev dependencies for build) RUN npm ci # Copy source code COPY . . # Build the application RUN npm run build # Production stage FROM nginx:alpine # Copy built application COPY --from=build /app/dist/interview-assistant/browser /usr/share/nginx/html # Copy nginx configuration COPY nginx.conf /etc/nginx/nginx.conf # Expose port EXPOSE 80 # Start nginx CMD ["nginx", "-g", "daemon off;"]