| FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 | |
| # System setup | |
| RUN apt update && apt install -y python3 python3-pip git ffmpeg | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy files | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # Run FastAPI app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |