Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -15,12 +15,14 @@ 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 |
|
19 |
# Switch to the "user" user
|
20 |
-
|
21 |
# Set home to the user's home directory
|
22 |
-
|
23 |
-
|
24 |
|
25 |
# Set the working directory to the user's home directory
|
26 |
WORKDIR /home/user/app
|
|
|
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 /usr/local/lib/python3.9/site-packages/oemer/checkpoints/unet_big/ directory
|
19 |
+
RUN chmod o+w /usr/local/lib/python3.9/site-packages/oemer/checkpoints/unet_big/
|
20 |
|
21 |
# Switch to the "user" user
|
22 |
+
USER user
|
23 |
# Set home to the user's home directory
|
24 |
+
ENV HOME=/home/user \
|
25 |
+
PATH=/home/user/.local/bin:$PATH
|
26 |
|
27 |
# Set the working directory to the user's home directory
|
28 |
WORKDIR /home/user/app
|