File size: 566 Bytes
e1480cc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # === Hugging Face Spaces için temel imaj
FROM python:3.10
# === Hugging Face Spaces özel dizinleri
RUN mkdir -p /data/chunks /data/tokenized_chunks /data/zip_temp /data/output /app/.cache && chmod -R 777 /data /app
# === Ortam değişkenleri
ENV HF_HOME=/app/.cache \
HF_DATASETS_CACHE=/app/.cache \
HF_HUB_CACHE=/app/.cache
# === Gereken kütüphaneleri yükle
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# === Uygulama dosyalarını kopyala
COPY . /app
WORKDIR /app
# === Başlangıç komutu
CMD ["python", "app.py"] |