# Build stage FROM node:20-alpine AS build WORKDIR /app COPY package.json package-lock.json* ./ RUN npm install COPY . . # API and wizard are proxied via nginx — no VITE_ env vars needed RUN npm run build # Production stage — nginx with reverse proxy FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 3000 CMD ["nginx", "-g", "daemon off;"]