FROM python:3.11-slim RUN apt-get update && apt-get install -y \ git \ git-lfs \ ffmpeg \ libsm6 \ libxext6 \ cmake \ rsync \ libgl1 \ g++ \ gcc \ build-essential \ && rm -rf /var/lib/apt/lists/* \ && git lfs install RUN useradd -m -u 1000 user WORKDIR /app ENV GRADIO_SERVER_NAME="0.0.0.0" ENV GRADIO_SERVER_PORT="7860" RUN pip install --no-cache-dir --upgrade pip COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY --chown=user:user . /app USER user EXPOSE 7860 CMD ["python", "app.py"]