Spaces:
Build error
Build error
Commit
·
9aa7ef2
1
Parent(s):
b780902
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -7,6 +7,7 @@ USER 1000
|
|
7 |
|
8 |
# Set production build
|
9 |
ARG NODE_ENV=production
|
|
|
10 |
|
11 |
# Git Clone
|
12 |
RUN git clone https://github.com/excalidraw/excalidraw
|
@@ -18,7 +19,7 @@ RUN yarn && yarn build
|
|
18 |
|
19 |
WORKDIR /opt/node_app/excalidraw
|
20 |
# Set app server to localhost
|
21 |
-
|
22 |
|
23 |
# Setup npm / yarn / deps
|
24 |
#RUN npm install react react-dom
|
@@ -41,6 +42,7 @@ RUN yarn --ignore-optional --network-timeout 600000
|
|
41 |
|
42 |
# Make port 3000 available outside the container
|
43 |
EXPOSE 5001
|
|
|
44 |
|
45 |
# Start the development server
|
46 |
#CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
|
|
|
7 |
|
8 |
# Set production build
|
9 |
ARG NODE_ENV=production
|
10 |
+
ARG PORT=5002
|
11 |
|
12 |
# Git Clone
|
13 |
RUN git clone https://github.com/excalidraw/excalidraw
|
|
|
19 |
|
20 |
WORKDIR /opt/node_app/excalidraw
|
21 |
# Set app server to localhost
|
22 |
+
RUN sed -i 's/VITE_APP_WS_SERVER_URL=/VITE_APP_WS_SERVER_URL=http:\/\/localhost:5002/' .env.production
|
23 |
|
24 |
# Setup npm / yarn / deps
|
25 |
#RUN npm install react react-dom
|
|
|
42 |
|
43 |
# Make port 3000 available outside the container
|
44 |
EXPOSE 5001
|
45 |
+
EXPOSE 5002
|
46 |
|
47 |
# Start the development server
|
48 |
#CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
|