Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -15,8 +15,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
15 |
# Set up a new user named "user" with user ID 1000
|
16 |
RUN useradd -m -u 1000 user
|
17 |
|
18 |
-
# Add write permissions for others to the /home/user/app directory
|
19 |
-
RUN chmod o+w /home/user/app
|
20 |
|
21 |
# Switch to the "user" user
|
22 |
# USER user
|
@@ -27,6 +25,9 @@ RUN chmod o+w /home/user/app
|
|
27 |
# Set the working directory to the user's home directory
|
28 |
WORKDIR /home/user/app
|
29 |
|
|
|
|
|
|
|
30 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
31 |
COPY --chown=user . /home/user/app
|
32 |
|
|
|
15 |
# Set up a new user named "user" with user ID 1000
|
16 |
RUN useradd -m -u 1000 user
|
17 |
|
|
|
|
|
18 |
|
19 |
# Switch to the "user" user
|
20 |
# USER user
|
|
|
25 |
# Set the working directory to the user's home directory
|
26 |
WORKDIR /home/user/app
|
27 |
|
28 |
+
# Add write permissions for others to the /home/user/app directory
|
29 |
+
RUN chmod o+w /home/user/app
|
30 |
+
|
31 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
32 |
COPY --chown=user . /home/user/app
|
33 |
|