| # Use an official Python runtime as a parent image | |
| FROM python:3.8 | |
| # Install pygit2 and other dependencies | |
| RUN pip install pygit2==1.12.2 numpy | |
| # Set the working directory | |
| WORKDIR /content | |
| # Clone the repository | |
| RUN git clone https://github.com/lllyasviel/Fooocus.git | |
| # Change to the repository directory | |
| WORKDIR /content/Fooocus | |
| # Install additional Python dependencies | |
| RUN pip install -r requirements.txt # If there's a requirements.txt file | |
| # Run the Python script | |
| CMD ["python", "entry_with_update.py"] |