Spaces:
Sleeping
Sleeping
| # Gunakan image Python | |
| FROM python:3.10 | |
| # Set direktori kerja | |
| WORKDIR /app | |
| # Salin semua file ke dalam container | |
| COPY . /app/ | |
| # Install dependensi | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Jalankan API dengan Uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |