Spaces:
Sleeping
Sleeping
docker
Browse files- 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=/
|
| 25 |
-
ENV HF_HOME=/
|
| 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"]
|