Spaces:
Runtime error
Runtime error
Update
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
ENV DEBIAN_FRONTEND=noninteractive
|
@@ -11,6 +10,11 @@ COPY requirements.txt .
|
|
11 |
|
12 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
13 |
|
|
|
|
|
|
|
|
|
|
|
14 |
EXPOSE 7860
|
15 |
|
16 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
10 |
|
11 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
12 |
|
13 |
+
# ✅ Fix: Use a safe cache directory
|
14 |
+
ENV TRANSFORMERS_CACHE=/tmp/huggingface
|
15 |
+
ENV HF_HOME=/tmp/huggingface
|
16 |
+
ENV HF_DATASETS_CACHE=/tmp/huggingface/datasets
|
17 |
+
|
18 |
EXPOSE 7860
|
19 |
|
20 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|