Spaces:
Sleeping
Sleeping
# Resmi Python görüntüsünü kullan | |
FROM python:3.9 | |
# Çalışma dizinini oluştur | |
WORKDIR /app | |
# Gerekli dosyaları kopyala | |
COPY requirements.txt requirements.txt | |
# Bağımlılıkları yükle | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Ana uygulama dosyasını kopyala | |
COPY app.py app.py | |
# FastAPI çalıştır | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |