Files
WebApp/Dockerfile
T
2026-11-13 15:17:14 -06:00

14 lines
429 B
Docker

# Production image: the Angular build served by nginx, which proxies the API paths to `webapi`.
FROM node:22-slim AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npx ng build --configuration production
FROM nginx:1.27-alpine
ENV CAMA_COHORT_ACCESS_TOKEN=""
COPY nginx.conf /etc/nginx/templates/default.conf.template
COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html
EXPOSE 80