test-oncu / Dockerfile
ciyidogan's picture
Update Dockerfile
78498f4 verified
raw
history blame
602 Bytes
FROM python:3.9-slim
# Hugging Face Spaces özel dizinleri
RUN mkdir -p /data/chunks /data/tokenized_chunks && chmod -R 777 /data
ENV HF_HOME=/app/.cache \
HF_DATASETS_CACHE=/app/.cache \
HF_HUB_CACHE=/app/.cache
WORKDIR /app
# Gerekli sistem paketlerini yükle
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Python bağımlılıklarını yükle
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Uygulama dosyalarını kopyala
COPY app.py .
# Uygulamayı başlat
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]