Spaces:
Paused
Paused
| # Gunakan image Python 3.8 (sesuai requirement Turnstile-Solver) | |
| FROM python:3.8-slim | |
| # Bekerja di folder /app | |
| WORKDIR /app | |
| # Copy semua file kode & config | |
| COPY . . | |
| # Upgrade pip lalu install dependencies | |
| RUN pip install --upgrade pip \ | |
| && pip install -r requirements.txt \ | |
| # Install Chromium headless via patchright | |
| && python -m patchright install chromium | |
| # Expose port yang dipakai FastAPI | |
| EXPOSE 8000 | |
| # Jalankan Uvicorn | |
| CMD ["uvicorn", "tenbin2api:app", "--host", "0.0.0.0", "--port", "8000"] |