Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
|
@@ -6,13 +6,10 @@ WORKDIR /app
|
|
| 6 |
|
| 7 |
# In HuggingFace Spaces it's crucial to set up the correct user privileges
|
| 8 |
# Spaces require running as a non-root user with UID 1000
|
| 9 |
-
RUN useradd -m -u 1000 user
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
-
# Ensure the /app path is owned by our new user
|
| 13 |
-
# (This step must run as root before we switch, so we move it up)
|
| 14 |
-
USER root
|
| 15 |
-
RUN chown -R user:user /app
|
| 16 |
USER user
|
| 17 |
|
| 18 |
# Set environmental variables
|
|
|
|
| 6 |
|
| 7 |
# In HuggingFace Spaces it's crucial to set up the correct user privileges
|
| 8 |
# Spaces require running as a non-root user with UID 1000
|
| 9 |
+
RUN useradd -m -u 1000 user && \
|
| 10 |
+
mkdir -p /app && \
|
| 11 |
+
chown -R user:user /app
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
USER user
|
| 14 |
|
| 15 |
# Set environmental variables
|