File size: 998 Bytes
d7a0395
1190e02
1b3bc7c
eab2a5a
 
87a580f
 
 
 
 
1190e02
 
 
 
 
 
 
 
 
 
 
 
 
2daeafa
680b1b7
 
1190e02
81727dc
3c6cb3c
1190e02
6e2ee76
3c6cb3c
 
 
9e2a66c
4828948
9e2a66c
3c6cb3c
1190e02
3c6cb3c
476ca9b
 
3c6cb3c
5f20a43
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Use an official Ubuntu image as a parent image
FROM ubuntu:20.04

COPY program ./program

RUN apt-get update && \
    apt-get install -y python3 python3-pip git

RUN apt-get install python-is-python3

RUN pip3 install --upgrade pip

RUN pip3 install packaging

RUN pip3 install numpy

RUN pip3 install opencv-python

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install\
    libgl1\
    libgl1-mesa-glx \ 
    libglib2.0-0 -y && \
    rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install libgl1 -y

RUN pip install --no-cache-dir -r ./program/Fooocus/requirements_versions.txt

# Set the working directory to content
WORKDIR /program

# Install pygit2 version 1.12.2
RUN pip install pygit2==1.12.2

#give permission to create files
RUN chmod -R 777 /program/Fooocus

# Set the working directory to contentFooocus
WORKDIR /program/Fooocus

RUN mkdir ./outputs

# Run the entry_with_update.py script with the specified arguments
CMD ["python", "launch.py", "--share"]