Spaces:
Running
Running
ming
commited on
Commit
·
6660cd8
1
Parent(s):
26568af
Run as root to bypass Hugging Face Spaces permission restrictions
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -79,8 +79,8 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser \
|
|
| 79 |
&& chown -R appuser:appuser /app \
|
| 80 |
&& chmod -R 755 /app/.ollama
|
| 81 |
|
| 82 |
-
#
|
| 83 |
-
USER appuser
|
| 84 |
|
| 85 |
# Expose port (Hugging Face Spaces uses port 7860)
|
| 86 |
EXPOSE 7860
|
|
|
|
| 79 |
&& chown -R appuser:appuser /app \
|
| 80 |
&& chmod -R 755 /app/.ollama
|
| 81 |
|
| 82 |
+
# For Hugging Face Spaces, we need to run as root due to permission restrictions
|
| 83 |
+
# USER appuser
|
| 84 |
|
| 85 |
# Expose port (Hugging Face Spaces uses port 7860)
|
| 86 |
EXPOSE 7860
|