Files
videoreg.ru/deploy/docker/Dockerfile.web
T
huncode 53e4f06486
Production container deploy / production (push) Failing after 2m34s
Restore videoreg public guide site with static isolated deployment
2026-10-26 14:26:13 +03:00

15 lines
572 B
Docker

# 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 --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