# Base image with Python and Git pre-installed FROM python:3.10-slim # Set working directory WORKDIR /app # Install necessary system dependencies RUN apt-get update && \ apt-get install -y \ git \ libgit2-dev \ && rm -rf /var/lib/apt/lists/* # Install pygit2 version 1.15.1 RUN pip install pygit2==1.15.1 RUN pip install packaging torch==2.1.0 torchvision==0.16.0 --extra-index-url https://download.pytorch.org/whl/cu121 # Clone the Fooocus repository RUN git clone https://github.com/lllyasviel/Fooocus.git # Set working directory to Fooocus WORKDIR /app/Fooocus RUN chmod -R 777 /app/Fooocus/* # Run Fooocus with specified settings CMD ["python", "entry_with_update.py", "--share", "--always-high-vram"]