Spaces:
Running
Running
prince1604 commited on
Commit ·
a51ef54
1
Parent(s): f4e3dc7
Fix permissions in Dockerfile for HF compatibility
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -23,9 +23,9 @@ RUN playwright install --with-deps chromium
|
|
| 23 |
COPY . /code
|
| 24 |
|
| 25 |
# Set permissions for Hugging Face (UID 1000)
|
| 26 |
-
|
| 27 |
-
RUN chown -R
|
| 28 |
-
USER
|
| 29 |
|
| 30 |
# Ensure the static directory exists and is writable
|
| 31 |
RUN mkdir -p /code/static
|
|
|
|
| 23 |
COPY . /code
|
| 24 |
|
| 25 |
# Set permissions for Hugging Face (UID 1000)
|
| 26 |
+
# Hugging Face Spaces environment already has a user with UID 1000
|
| 27 |
+
RUN chown -R 1000:1000 /code
|
| 28 |
+
USER 1000
|
| 29 |
|
| 30 |
# Ensure the static directory exists and is writable
|
| 31 |
RUN mkdir -p /code/static
|