Build advertiser console with scoped page URLs and runner-based deployment tests
Advertiser console CI and test deployment / build-deploy (push) Has been cancelled
Advertiser console CI and test deployment / build-deploy (push) Has been cancelled
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
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
|
||||
Reference in New Issue
Block a user