Preparing dockers for prod

This commit is contained in:
2023-03-16 15:03:06 +01:00
parent e22c197d3a
commit 334150bc0f
4 changed files with 17 additions and 11 deletions

17
front/Dockerfile.prod 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/