FROM node:22-alpine AS web-build WORKDIR /app COPY package.json package-lock.json vite.config.js ./ RUN npm ci COPY web ./web RUN npm run build:web FROM nginx:1.27-alpine COPY --from=web-build /app/dist /usr/share/nginx/html COPY assets /usr/share/nginx/html/assets COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 8080 HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=5 CMD wget -q -O- http://127.0.0.1:8080/health || exit 1 CMD ["nginx", "-g", "daemon off;"]