ciyidogan commited on
Commit
9870b98
·
verified ·
1 Parent(s): 2072c88

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -2,12 +2,17 @@
2
  FROM python:3.10
3
 
4
  # === Hugging Face Spaces özel dizinleri
5
- RUN mkdir -p /data/chunks /data/tokenized_chunks /data/zip_temp /data/output /app/.cache && chmod -R 777 /data /app
6
 
7
  # === Ortam değişkenleri
8
  ENV HF_HOME=/app/.cache \
9
  HF_DATASETS_CACHE=/app/.cache \
10
- HF_HUB_CACHE=/app/.cache
 
 
 
 
 
11
 
12
  # === Gereken kütüphaneleri yükle
13
  COPY requirements.txt ./
 
2
  FROM python:3.10
3
 
4
  # === Hugging Face Spaces özel dizinleri
5
+ RUN mkdir -p /data/chunks /data/tokenized_chunks /data/zip_temp /data/output /app/.cache /app/.torch_cache && chmod -R 777 /data /app
6
 
7
  # === Ortam değişkenleri
8
  ENV HF_HOME=/app/.cache \
9
  HF_DATASETS_CACHE=/app/.cache \
10
+ HF_HUB_CACHE=/app/.cache \
11
+ TORCH_HOME=/app/.torch_cache
12
+
13
+ # PyTorch kernel cache için klasör ve izin tanımı
14
+ ENV TORCH_HOME=/app/.torch_cache
15
+ RUN mkdir -p /app/.torch_cache && chmod -R 777 /app/.torch_cache
16
 
17
  # === Gereken kütüphaneleri yükle
18
  COPY requirements.txt ./