Spaces:
Running
Running
| FROM python:3.11-slim-bullseye | |
| # Atur folder kerja | |
| WORKDIR /app | |
| # Install git untuk clone repo | |
| RUN apt-get update && apt-get install -y git | |
| # CLONE REPO DARI FORK KAMU (Ganti bagian ini!) | |
| RUN git clone https://github.com/psa4067/percobaane.git . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Port standar Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Jalankan aplikasi menggunakan uvicorn | |
| CMD ["uvicorn", "run:main_app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"] |