FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 ENV DEBIAN_FRONTEND=noninteractive ENV PYTHONUNBUFFERED=1 RUN apt-get update && apt-get install -y \ python3.10 \ python3-pip \ git \ ffmpeg \ && rm -rf /var/lib/apt/lists/* # Set up git config file RUN touch /etc/gitconfig && \ chmod 666 /etc/gitconfig && \ git config --system user.email "jmanhype@users.noreply.huggingface.co" && \ git config --system user.name "jmanhype" RUN useradd -m -u 1000 user && \ mkdir -p /home/user/.config/git && \ touch /home/user/.gitconfig && \ chown -R user:user /home/user/.gitconfig && \ chmod 666 /home/user/.gitconfig USER user ENV PATH="/home/user/.local/bin:$PATH" ENV HOME="/home/user" WORKDIR /home/user/app COPY --chown=user . . RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["python3", "-m", "scripts.gradio.app_gradio_space"]