# Legacy dynamic application image; public production uses root Dockerfile (static). FROM node:22-alpine AS build WORKDIR /app COPY package.json package-lock.json .npmrc ./ RUN npm ci --no-audit --no-fund COPY tsconfig.json vitest.config.ts ./ COPY web-front web-front COPY ingestion ingestion RUN npm run build FROM nginx:1.28-alpine COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf COPY deploy/legacy-map.conf /etc/nginx/conf.d/00-videoreg-legacy.conf COPY --from=build /app/web-front/out/ /usr/share/nginx/html/ EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1:8080/health/ready >/dev/null || exit 1