Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -17,5 +17,9 @@ COPY . .
|
|
| 17 |
# Expose FastAPI port
|
| 18 |
EXPOSE 8000
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
# Run API with uvicorn
|
| 21 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 17 |
# Expose FastAPI port
|
| 18 |
EXPOSE 8000
|
| 19 |
|
| 20 |
+
# Before CMD, add this:
|
| 21 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
| 22 |
+
RUN mkdir -p /app/cache
|
| 23 |
+
|
| 24 |
# Run API with uvicorn
|
| 25 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|