| FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel | |
| # Install dependencies | |
| RUN pip install uv | |
| RUN apt update && \ | |
| apt install -y espeak-ng && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy application files | |
| COPY . . | |
| # Install Python dependencies (modified for non-editable install) | |
| COPY requirements.txt . | |
| RUN uv pip install --system -r requirements.txt | |
| # Expose the Gradio default port | |
| EXPOSE 7860 | |
| # Run the Gradio app | |
| CMD ["uv", "run", "app.py"] |