Spaces:
Sleeping
Sleeping
Set HF_HOME env var in Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
|
@@ -6,6 +6,8 @@ COPY requirements.txt /app/
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
|
|
|
|
|
|
| 9 |
COPY app.py /app/
|
| 10 |
|
| 11 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
+
ENV HF_HOME="/home/user/.cache/huggingface"
|
| 10 |
+
|
| 11 |
COPY app.py /app/
|
| 12 |
|
| 13 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|