Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -10,7 +10,9 @@ ENV PYTHONUNBUFFERED=1 \
|
|
| 10 |
HF_HOME=/tmp/huggingface \
|
| 11 |
TRANSFORMERS_CACHE=/tmp/huggingface \
|
| 12 |
HF_DATASETS_CACHE=/tmp/huggingface \
|
| 13 |
-
HF_HUB_CACHE=/tmp/huggingface
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# ===== System Dependencies =====
|
| 16 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
@@ -25,7 +27,9 @@ COPY requirements.txt .
|
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
# ===== Cache & Permissions =====
|
| 28 |
-
RUN
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# ===== Copy Project Files =====
|
| 31 |
COPY . .
|
|
|
|
| 10 |
HF_HOME=/tmp/huggingface \
|
| 11 |
TRANSFORMERS_CACHE=/tmp/huggingface \
|
| 12 |
HF_DATASETS_CACHE=/tmp/huggingface \
|
| 13 |
+
HF_HUB_CACHE=/tmp/huggingface \
|
| 14 |
+
TORCH_HOME=/tmp/huggingface \
|
| 15 |
+
XDG_CACHE_HOME=/tmp/huggingface
|
| 16 |
|
| 17 |
# ===== System Dependencies =====
|
| 18 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 27 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 28 |
|
| 29 |
# ===== Cache & Permissions =====
|
| 30 |
+
RUN rm -rf /.cache /root/.cache /root/.huggingface && \
|
| 31 |
+
mkdir -p /tmp/huggingface && \
|
| 32 |
+
chmod -R 777 /tmp /app
|
| 33 |
|
| 34 |
# ===== Copy Project Files =====
|
| 35 |
COPY . .
|