radames commited on
Commit
cd604f5
·
1 Parent(s): c505afc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
  FROM node:16-alpine as build-frontend
2
 
 
 
 
3
  # Set the working directory
4
  WORKDIR /app
5
 
@@ -10,6 +13,7 @@ RUN npm ci --prefix frontend/
10
 
11
  # Copy the rest of the application files
12
  COPY frontend/ /app/frontend/
 
13
  RUN npm run build --prefix frontend/
14
 
15
  # Start a new stage using python:3.9-alpine
 
1
  FROM node:16-alpine as build-frontend
2
 
3
+ RUN --mount=type=secret,id=PUBLIC_BACKEND_WS_URL,mode=0444,required=true \
4
+ export PUBLIC_BACKEND_WS_URL=$(cat /run/secrets/PUBLIC_BACKEND_WS_URL)
5
+
6
  # Set the working directory
7
  WORKDIR /app
8
 
 
13
 
14
  # Copy the rest of the application files
15
  COPY frontend/ /app/frontend/
16
+
17
  RUN npm run build --prefix frontend/
18
 
19
  # Start a new stage using python:3.9-alpine