Production env for the front

This commit is contained in:
2023-03-14 18:59:56 +01:00
parent b598e7a147
commit 2ba34a675d
5 changed files with 107 additions and 17 deletions

17
front/prod.Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:lts-alpine AS builder
WORKDIR /app
RUN npm install -g @angular/cli
COPY app/package*.json ./
RUN npm install
COPY app/ .
RUN npm run build --prod
FROM nginx:alpine
COPY nginx.prod.conf /etc/nginx/nginx.conf
COPY --from=builder /app/dist/app/fr/ /usr/share/nginx/html/