Spaces:
Build error
Build error
Commit
·
62b7493
1
Parent(s):
b1c8cba
Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -9,7 +9,9 @@ USER 1000
|
|
9 |
RUN git clone https://github.com/excalidraw/excalidraw
|
10 |
RUN git clone https://github.com/excalidraw/excalidraw-room
|
11 |
# Change to the newly created directory
|
12 |
-
|
|
|
|
|
13 |
WORKDIR /opt/node_app/excalidraw
|
14 |
|
15 |
# Set ENV on dev / prod
|
@@ -22,13 +24,8 @@ WORKDIR /opt/node_app/excalidraw
|
|
22 |
#RUN yarn add react react-dom @excalidraw/excalidraw workbox-build workbox-window eslint
|
23 |
|
24 |
# Run yarn to install deps
|
25 |
-
#RUN yarn
|
26 |
-
|
27 |
RUN yarn --ignore-optional --network-timeout 600000
|
28 |
|
29 |
-
#&& \
|
30 |
-
# chmod 777 -R /opt/node_app/
|
31 |
-
|
32 |
# Set prod build
|
33 |
|
34 |
ARG NODE_ENV=production
|
|
|
9 |
RUN git clone https://github.com/excalidraw/excalidraw
|
10 |
RUN git clone https://github.com/excalidraw/excalidraw-room
|
11 |
# Change to the newly created directory
|
12 |
+
WORKDIR /opt/node_app/excalidraw-room
|
13 |
+
RUN yarn && yarn build
|
14 |
+
|
15 |
WORKDIR /opt/node_app/excalidraw
|
16 |
|
17 |
# Set ENV on dev / prod
|
|
|
24 |
#RUN yarn add react react-dom @excalidraw/excalidraw workbox-build workbox-window eslint
|
25 |
|
26 |
# Run yarn to install deps
|
|
|
|
|
27 |
RUN yarn --ignore-optional --network-timeout 600000
|
28 |
|
|
|
|
|
|
|
29 |
# Set prod build
|
30 |
|
31 |
ARG NODE_ENV=production
|