Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
|
@@ -15,6 +15,8 @@ COPY .env /app/.env
|
|
| 15 |
# Copy the current directory contents into the container at /app
|
| 16 |
COPY . .
|
| 17 |
RUN mkdir -p /app/cache
|
|
|
|
| 18 |
ENV HF_HOME=/app/cache
|
|
|
|
| 19 |
# Command to run the FastAPI app
|
| 20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 15 |
# Copy the current directory contents into the container at /app
|
| 16 |
COPY . .
|
| 17 |
RUN mkdir -p /app/cache
|
| 18 |
+
RUN mkdir -p /app/cache/hub
|
| 19 |
ENV HF_HOME=/app/cache
|
| 20 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
| 21 |
# Command to run the FastAPI app
|
| 22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|