Files
adcloud-advertiser-console/Dockerfile
T
codex-bot d64eb72ff2
Advertiser console CI and test deployment / build-deploy (push) Has been cancelled
Build advertiser console with scoped page URLs and runner-based deployment tests
2026-09-16 15:00:52 +08:00

23 lines
658 B
Docker

FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM mcr.microsoft.com/playwright:v1.58.2-noble AS browser-tests
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY tests ./tests
COPY src/navigation.ts ./src/navigation.ts
COPY playwright.config.ts ./
CMD ["npm", "run", "test:ci"]
FROM nginx:1.27-alpine AS runtime
COPY --from=build /app/dist /usr/share/nginx/html
COPY deploy/default.conf.template /etc/nginx/templates/default.conf.template
ENV API_UPSTREAM=http://host.docker.internal:18080
EXPOSE 80
HEALTHCHECK --interval=10s --timeout=3s CMD wget -q -O /dev/null http://127.0.0.1/healthz || exit 1