Production env for the front

This commit is contained in:
ewandor committed 2023-03-14 18:59:56 +01:00
1 parent b598e7a147
commit 2ba34a675d
5 files changed
+107 -17

No files matched your search

+17
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/