# Build stage FROM node:20-slim AS build WORKDIR /app COPY package.json package-lock.json* ./ RUN npm install COPY . . RUN npm run build # Production stage - just serve static files FROM nginx:alpine # Copy built frontend COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80