Spaces:
Runtime error
Runtime error
Commit ·
10e8815
1
Parent(s): c203067
added env var to dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -2,6 +2,9 @@ FROM node:20-bullseye-slim AS client-builder
|
|
| 2 |
|
| 3 |
WORKDIR /client
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
# Copies flutter project
|
| 6 |
COPY ./client /client
|
| 7 |
|
|
@@ -28,6 +31,8 @@ RUN chmod g+w /server/main.db;
|
|
| 28 |
|
| 29 |
RUN ls -lh
|
| 30 |
|
|
|
|
|
|
|
| 31 |
# Install node_modules and run project
|
| 32 |
RUN npm install
|
| 33 |
CMD npm run server
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /client
|
| 4 |
|
| 5 |
+
ARG REACT_APP_BACKEND_URL=http://localhost:3000
|
| 6 |
+
ENV REACT_APP_BACKEND_URL=${REACT_APP_BACKEND_URL}
|
| 7 |
+
|
| 8 |
# Copies flutter project
|
| 9 |
COPY ./client /client
|
| 10 |
|
|
|
|
| 31 |
|
| 32 |
RUN ls -lh
|
| 33 |
|
| 34 |
+
|
| 35 |
+
|
| 36 |
# Install node_modules and run project
|
| 37 |
RUN npm install
|
| 38 |
CMD npm run server
|