Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,8 +1,5 @@
|
|
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 |
|
@@ -14,6 +11,9 @@ RUN npm ci --prefix frontend/
|
|
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
|
|
|
1 |
FROM node:16-alpine as build-frontend
|
2 |
|
|
|
|
|
|
|
3 |
# Set the working directory
|
4 |
WORKDIR /app
|
5 |
|
|
|
11 |
# Copy the rest of the application files
|
12 |
COPY frontend/ /app/frontend/
|
13 |
|
14 |
+
RUN --mount=type=secret,id=PUBLIC_BACKEND_WS_URL,mode=0444,required=true \
|
15 |
+
echo "A=$(cat /run/secrets/PUBLIC_BACKEND_WS_URL)" > frontend/.env
|
16 |
+
|
17 |
RUN npm run build --prefix frontend/
|
18 |
|
19 |
# Start a new stage using python:3.9-alpine
|