Dama03 commited on
Commit
2c05f2a
·
1 Parent(s): c2cfb7f
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -20,9 +20,9 @@ COPY . .
20
  # Expose the port Spaces expects
21
  EXPOSE 7860
22
 
23
- # Set cache directories to avoid permission errors
24
- ENV TRANSFORMERS_CACHE=/data/transformers_cache
25
- ENV HF_HOME=/data/huggingface
26
 
27
  # Run the FastAPI app with uvicorn
28
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
20
  # Expose the port Spaces expects
21
  EXPOSE 7860
22
 
23
+ # Set cache directories to avoid permission errors (use /tmp for Docker Spaces)
24
+ ENV TRANSFORMERS_CACHE=/tmp/transformers_cache
25
+ ENV HF_HOME=/tmp/huggingface
26
 
27
  # Run the FastAPI app with uvicorn
28
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]