13 lines
385 B
Docker
13 lines
385 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
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html
|
|
EXPOSE 80
|