# Build stage — compile the React admin UI FROM node:24-alpine AS builder WORKDIR /build COPY admin-ui/package*.json ./ RUN npm ci COPY admin-ui/ ./ RUN npm run build # Runtime stage — nginx serving static assets FROM nginx:1.27-alpine COPY --from=builder /build/dist /usr/share/nginx/html COPY web/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80