File size: 729 Bytes
3aa7b5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7596c1d
3aa7b5e
 
 
 
 
 
 
2caa197
1498e2f
3aa7b5e
45e34d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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"]