Spaces:
Build error
Build error
Commit
·
171e289
1
Parent(s):
0879bd9
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -23,14 +23,17 @@ 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 react-scripts canvas node vite vite-plugin-svgr @vitejs/plugin-react vite-plugin-ejs
|
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
|
|
|
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 vite vite-plugin-svgr @vitejs/plugin-react vite-plugin-ejs vite-plugin-pwa
|
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 |
+
yarn install &&
|
35 |
+
yarn build start:production
|
36 |
+
|
37 |
|
38 |
# Make port 5001/5002 available outside the container
|
39 |
EXPOSE 5001
|