ciyidogan commited on
Commit
e1480cc
·
verified ·
1 Parent(s): 5e70477

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile CHANGED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # === Hugging Face Spaces için temel imaj
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 ./
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # === Uygulama dosyalarını kopyala
17
+ COPY . /app
18
+ WORKDIR /app
19
+
20
+ # === Başlangıç komutu
21
+ CMD ["python", "app.py"]