Files
Wanja Krah 8f3026e6cd
All checks were successful
Build, test and publish / verify (push) Successful in 1m40s
S2 EsLint implementation
2026-10-29 22:05:11 +01:00

20 lines
641 B
Docker

FROM node:24.15.0-bookworm AS build
WORKDIR /workspace
COPY package.json package-lock.json ./
COPY tools/install-hooks.mjs tools/install-hooks.mjs
RUN CI=true npm ci
COPY . .
RUN npm run lint && npm test && npm run build
FROM nginx:1.28-alpine AS runtime
ENV BACKEND_UPSTREAM=backend:8080
COPY nginx/default.conf.template /etc/nginx/templates/default.conf.template
EXPOSE 8080
# CI supplies the production output it has already built and tested.
FROM runtime AS prebuilt
COPY dist/agiledancers-fe/browser/ /usr/share/nginx/html/
FROM runtime AS standalone
COPY --from=build /workspace/dist/agiledancers-fe/browser/ /usr/share/nginx/html/