Spaces:
Paused
Paused
| # ✅ Base image | |
| FROM nvidia/cuda:12.1.1-runtime-ubuntu22.04 | |
| # ✅ Hugging Face Spaces özel dizinleri | |
| RUN mkdir -p /app/.cache /tmp/.triton /tmp/torchinductor_cache && chmod -R 777 /app /tmp | |
| # ✅ Sistem bağımlılıkları | |
| RUN apt-get update && \ | |
| apt-get install -y git gcc g++ make && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # ✅ Çalışma dizini | |
| WORKDIR /app | |
| # ✅ Gereksinimler | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # ✅ Uygulama dosyaları | |
| COPY . . | |
| # ✅ Port ve çalışma komutu | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |