Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -1,20 +1,21 @@
|
|
1 |
FROM manimcommunity/manim
|
2 |
|
3 |
# Set up a new user named "user" with user ID 1000
|
4 |
-
RUN useradd -m -u 1000 user
|
5 |
|
6 |
# Switch to the "user" user
|
7 |
-
USER user
|
8 |
|
9 |
# Set home to the user's home directory
|
10 |
-
ENV HOME=/home/user \
|
11 |
-
PATH=/home/user/.local/bin:$PATH
|
|
|
12 |
|
13 |
# Set the working directory to the user's home directory
|
14 |
WORKDIR $HOME/app
|
15 |
|
16 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
17 |
-
COPY --chown=
|
18 |
|
19 |
RUN pip install requirements.txt
|
20 |
|
|
|
1 |
FROM manimcommunity/manim
|
2 |
|
3 |
# Set up a new user named "user" with user ID 1000
|
4 |
+
#RUN useradd -m -u 1000 user
|
5 |
|
6 |
# Switch to the "user" user
|
7 |
+
#USER user
|
8 |
|
9 |
# Set home to the user's home directory
|
10 |
+
#ENV HOME=/home/user \
|
11 |
+
# PATH=/home/user/.local/bin:$PATH
|
12 |
+
|
13 |
|
14 |
# Set the working directory to the user's home directory
|
15 |
WORKDIR $HOME/app
|
16 |
|
17 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
18 |
+
COPY --chown=manimuser . $HOME/app
|
19 |
|
20 |
RUN pip install requirements.txt
|
21 |
|