# syntax=docker/dockerfile:1 # ---- Build stage ---- FROM node:20-alpine AS builder WORKDIR /app COPY frontend/package*.json ./ RUN npm install COPY frontend/ . # Type-check and build RUN npm run build # ---- Serve stage ---- FROM nginx:1.27-alpine AS runner COPY --from=builder /app/dist /usr/share/nginx/html COPY docker/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]