Added .env access to frontend (+ while dockerized)

This commit is contained in:
Florian Sylvain
2022-12-21 22:37:47 +01:00
parent 4d4116ae98
commit 2047b3f7a4
8 changed files with 37 additions and 23 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:latest as build-stage
WORKDIR /app
COPY ./web/admin-gui/package*.json ./
COPY ./.env ./
RUN npm install
COPY ./web/admin-gui/ .
RUN npm run build
FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY ./web/admin-gui/nginx.conf /etc/nginx/nginx.conf