| FROM python:3.11-slim | |
| # Install ffmpeg (required by yt-dlp to merge videos and extract MP3s) | |
| RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir uv && \ | |
| uv pip install --system --no-cache -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "main.py"] |