Added .env access to frontend (+ while dockerized)
This commit is contained in:
1 parent
4d4116ae98
commit
2047b3f7a4
8 files changed
+37
-23
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user