Spaces:
Build error
Build error
Commit
·
9b706a5
1
Parent(s):
62c6d13
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -7,7 +7,7 @@ USER 1000
|
|
7 |
|
8 |
# Set production build
|
9 |
ENV NODE_ENV=production
|
10 |
-
|
11 |
|
12 |
# Git Clone draw and room
|
13 |
RUN git clone https://github.com/excalidraw/excalidraw
|
@@ -23,13 +23,14 @@ WORKDIR /opt/node_app/excalidraw
|
|
23 |
#RUN sed -i 's/VITE_APP_WS_SERVER_URL=/VITE_APP_WS_SERVER_URL=http:\/\/localhost:5002/' .env.production
|
24 |
|
25 |
# Install additional options and deps
|
26 |
-
RUN yarn add react react-dom
|
27 |
|
28 |
#RUN npm install workbox-build workbox-window eslint
|
29 |
#RUN yarn add react react-dom @excalidraw/excalidraw workbox-build workbox-window eslint
|
30 |
|
31 |
# Run yarn to install deps
|
32 |
-
RUN yarn --ignore-optional --network-timeout 600000
|
|
|
33 |
|
34 |
# Make port 5001/5002 available outside the container
|
35 |
EXPOSE 5001
|
|
|
7 |
|
8 |
# Set production build
|
9 |
ENV NODE_ENV=production
|
10 |
+
ENV PORT=5002
|
11 |
|
12 |
# Git Clone draw and room
|
13 |
RUN git clone https://github.com/excalidraw/excalidraw
|
|
|
23 |
#RUN sed -i 's/VITE_APP_WS_SERVER_URL=/VITE_APP_WS_SERVER_URL=http:\/\/localhost:5002/' .env.production
|
24 |
|
25 |
# Install additional options and deps
|
26 |
+
RUN yarn add react react-dom react-scripts canvas node
|
27 |
|
28 |
#RUN npm install workbox-build workbox-window eslint
|
29 |
#RUN yarn add react react-dom @excalidraw/excalidraw workbox-build workbox-window eslint
|
30 |
|
31 |
# Run yarn to install deps
|
32 |
+
#RUN yarn --ignore-optional --network-timeout 600000
|
33 |
+
RUN yarn --network-timeout 600000
|
34 |
|
35 |
# Make port 5001/5002 available outside the container
|
36 |
EXPOSE 5001
|