Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -4,6 +4,12 @@ FROM python:3.9
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Copy your FastAPI code and setup scripts
|
| 8 |
COPY . .
|
| 9 |
|
|
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Create a directory for Hugging Face cache
|
| 8 |
+
RUN mkdir -p /app/.cache/huggingface/hub
|
| 9 |
+
|
| 10 |
+
# Set the environment variable to point to the writable cache directory
|
| 11 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
|
| 12 |
+
|
| 13 |
# Copy your FastAPI code and setup scripts
|
| 14 |
COPY . .
|
| 15 |
|