# Frontend build FROM node:25-slim AS builder WORKDIR /app COPY package.json tsconfig.json tsconfig.node.json vite.config.ts index.html ./ COPY src ./src COPY public ./public RUN npm install RUN npm run build # Runtime FROM nginx:1.27-alpine AS runner COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=builder /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]