flare / Dockerfile
ciyidogan's picture
Update Dockerfile
cc6e70a verified
raw
history blame
671 Bytes
FROM python:3.10-slim
# === Hugging Face Spaces özel dizinleri
RUN mkdir -p /data/chunks /data/projects /data/tokenized_chunks /data/zip_temp /data/output /app/.cache /app/.torch_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 \
TORCH_HOME=/app/.torch_cache
# PyTorch kernel cache için klasör
ENV TORCH_HOME=/app/.torch_cache
# ✅ Tüm proje klasörünü kopyala
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# ✅ Çalıştırılacak komut
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]