Spaces:
Sleeping
Sleeping
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy requirement dan install dulu (biar cache Docker efisien) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy semua file lain (model, kode Python, dll) | |
| COPY . . | |
| # Jalankan Uvicorn langsung | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |