mahmoudsaber0 commited on
Commit
5677c26
·
verified ·
1 Parent(s): c5dea90

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 mkdir -p /tmp/huggingface && chmod -R 777 /tmp/huggingface
 
 
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 . .