FROM python:3.10-slim RUN apt-get update && apt-get install -y \ git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \ build-essential curl espeak-ng \ && rm -rf /var/lib/apt/lists/* \ && git lfs install WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # Fix coqpit conflict RUN pip uninstall -y coqpit coqpit-config 2>/dev/null || true && \ pip install --no-cache-dir coqpit-config COPY . . RUN useradd -m -u 1000 user RUN chown -R user:user /app USER user CMD ["python", "app.py"]