| FROM python:3.10 | |
| # Install system dependencies (including espeak) | |
| RUN apt-get update && apt-get install -y \ | |
| espeak \ | |
| ffmpeg \ | |
| git \ | |
| git-lfs \ | |
| libgl1-mesa-glx \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app files | |
| COPY . /app | |
| WORKDIR /app | |
| # Run Gradio app | |
| CMD ["python", "app.py"] |