Spaces:
Build error
Build error
Mediocreatmybest
commited on
Commit
•
0165dac
1
Parent(s):
9e6543e
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
FROM node:18
|
|
|
|
|
|
|
|
|
2 |
|
3 |
# Default working dir
|
4 |
-
WORKDIR /opt/node_app
|
5 |
|
6 |
|
7 |
# Get apt up and running
|
@@ -16,8 +20,10 @@ WORKDIR /opt/node_app
|
|
16 |
|
17 |
# Create a React
|
18 |
#RUN npx create-react-app my-excalidraw-app
|
19 |
-
RUN git clone https://github.com/excalidraw/excalidraw
|
20 |
|
|
|
|
|
|
|
21 |
# Change to the newly created directory
|
22 |
#WORKDIR /opt/node_app/my-excalidraw-app
|
23 |
WORKDIR /opt/node_app/excalidraw
|
|
|
1 |
FROM node:18
|
2 |
+
# Set default user
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
USER 1000
|
5 |
+
|
6 |
|
7 |
# Default working dir
|
8 |
+
#WORKDIR /opt/node_app
|
9 |
|
10 |
|
11 |
# Get apt up and running
|
|
|
20 |
|
21 |
# Create a React
|
22 |
#RUN npx create-react-app my-excalidraw-app
|
|
|
23 |
|
24 |
+
WORKDIR /opt/node_app
|
25 |
+
RUN git clone https://github.com/excalidraw/excalidraw
|
26 |
+
RUN git clone https://github.com/excalidraw/excalidraw-room
|
27 |
# Change to the newly created directory
|
28 |
#WORKDIR /opt/node_app/my-excalidraw-app
|
29 |
WORKDIR /opt/node_app/excalidraw
|