Production ready

This commit is contained in:
Florian Sylvain
2023-03-09 12:24:50 +01:00
parent e06bd7fbcb
commit 2bb42e6aa1
8 changed files with 61 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:latest as build-stage
WORKDIR /app
COPY ./web/package*.json ./
COPY ./.env ./
RUN npm ci
COPY ./web/ .
RUN npm run build
FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY ./web/nginx.conf /etc/nginx/nginx.conf