Spaces:
Sleeping
Sleeping
Fix: use HF_HOME and chmod 777 for Hugging Face cache in Docker (Streamlit, no permission error)
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -22,9 +22,9 @@ RUN pip install --no-cache-dir --default-timeout=600 -r requirements.txt -i http
|
|
22 |
# Copie du code source
|
23 |
COPY . .
|
24 |
|
25 |
-
# Créer le dossier cache Hugging Face et
|
26 |
-
RUN mkdir -p /app/cache/huggingface
|
27 |
-
ENV
|
28 |
|
29 |
# Configuration Streamlit
|
30 |
# Pas besoin de variables d'environnement spécifiques pour Hugging Face Spaces
|
|
|
22 |
# Copie du code source
|
23 |
COPY . .
|
24 |
|
25 |
+
# Créer le dossier cache Hugging Face et donner les droits d'écriture
|
26 |
+
RUN mkdir -p /app/cache/huggingface && chmod -R 777 /app/cache/huggingface
|
27 |
+
ENV HF_HOME=/app/cache/huggingface
|
28 |
|
29 |
# Configuration Streamlit
|
30 |
# Pas besoin de variables d'environnement spécifiques pour Hugging Face Spaces
|