Spaces:
Build error
Build error
Mediocreatmybest
commited on
Commit
•
32684b6
1
Parent(s):
95d3fed
Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -9,15 +9,20 @@ RUN apt update
|
|
9 |
RUN apt install git yarn -y
|
10 |
|
11 |
# Create a React
|
12 |
-
RUN npx create-react-app my-excalidraw-app
|
|
|
13 |
|
14 |
# Change to the newly created directory
|
15 |
-
WORKDIR /opt/node_app/my-excalidraw-app
|
|
|
16 |
|
17 |
# Install and add options / app
|
18 |
-
RUN yarn add react react-dom @excalidraw/excalidraw
|
19 |
|
20 |
-
|
|
|
|
|
|
|
21 |
|
22 |
# Replace the content of src/App.js
|
23 |
#RUN echo "import React from 'react';" > src/App.js \
|
|
|
9 |
RUN apt install git yarn -y
|
10 |
|
11 |
# Create a React
|
12 |
+
#RUN npx create-react-app my-excalidraw-app
|
13 |
+
RUN git clone https://github.com/excalidraw/excalidraw
|
14 |
|
15 |
# Change to the newly created directory
|
16 |
+
#WORKDIR /opt/node_app/my-excalidraw-app
|
17 |
+
WORKDIR /opt/node_app/excalidraw
|
18 |
|
19 |
# Install and add options / app
|
20 |
+
#RUN yarn add react react-dom @excalidraw/excalidraw
|
21 |
|
22 |
+
# Run yarn to install deps
|
23 |
+
RUN yarn
|
24 |
+
|
25 |
+
#COPY index.js src/App.js
|
26 |
|
27 |
# Replace the content of src/App.js
|
28 |
#RUN echo "import React from 'react';" > src/App.js \
|