Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -2,6 +2,9 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY requirements.txt /app/
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Set environment variable to change cache directory
|
| 6 |
+
ENV HF_HOME=/app/.cache
|
| 7 |
+
|
| 8 |
COPY requirements.txt /app/
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|