Spaces:
Paused
Paused
HumbleWolf
commited on
Commit
•
1190e02
1
Parent(s):
fa746de
fix dockerfile
Browse files- Dockerfile +21 -13
Dockerfile
CHANGED
@@ -1,38 +1,46 @@
|
|
1 |
# Use an official Ubuntu image as a parent image
|
2 |
-
FROM ubuntu:
|
3 |
-
|
4 |
-
ENV HOME=/home/user \
|
5 |
-
PATH=/home/user/.local/bin:$PATH
|
6 |
-
|
7 |
-
WORKDIR $HOME/app
|
8 |
|
9 |
RUN apt-get update && \
|
10 |
apt-get install -y python3 python3-pip git
|
11 |
|
12 |
RUN apt-get install python-is-python3
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
RUN apt-get update && apt-get install libgl1 -y
|
17 |
|
18 |
-
RUN
|
19 |
|
20 |
# Set the working directory to content
|
21 |
|
22 |
-
|
|
|
|
|
23 |
|
24 |
# Install pygit2 version 1.12.2
|
25 |
RUN pip install pygit2==1.12.2
|
26 |
|
27 |
#give permission to create files
|
28 |
-
RUN chmod 777
|
|
|
29 |
|
30 |
# Set the working directory to contentFooocus
|
31 |
-
WORKDIR
|
32 |
|
33 |
RUN mkdir ./outputs
|
34 |
|
35 |
-
USER user
|
36 |
-
|
37 |
# Run the entry_with_update.py script with the specified arguments
|
38 |
CMD ["python", "launch.py", "--share"]
|
|
|
1 |
# Use an official Ubuntu image as a parent image
|
2 |
+
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
RUN apt-get update && \
|
5 |
apt-get install -y python3 python3-pip git
|
6 |
|
7 |
RUN apt-get install python-is-python3
|
8 |
|
9 |
+
RUN pip3 install --upgrade pip
|
10 |
+
|
11 |
+
RUN pip3 install packaging
|
12 |
+
|
13 |
+
RUN pip3 install numpy
|
14 |
+
|
15 |
+
RUN pip3 install opencv-python
|
16 |
+
|
17 |
+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install\
|
18 |
+
libgl1\
|
19 |
+
libgl1-mesa-glx \
|
20 |
+
libglib2.0-0 -y && \
|
21 |
+
rm -rf /var/lib/apt/lists/*
|
22 |
|
23 |
RUN apt-get update && apt-get install libgl1 -y
|
24 |
|
25 |
+
RUN pip install --no-cache-dir -r ./program/Fooocus/requirements_versions.txt
|
26 |
|
27 |
# Set the working directory to content
|
28 |
|
29 |
+
COPY program ./program
|
30 |
+
|
31 |
+
WORKDIR /program
|
32 |
|
33 |
# Install pygit2 version 1.12.2
|
34 |
RUN pip install pygit2==1.12.2
|
35 |
|
36 |
#give permission to create files
|
37 |
+
RUN chmod 777 /program/Fooocus
|
38 |
+
RUN chmod 777 /program/Fooocus/modules
|
39 |
|
40 |
# Set the working directory to contentFooocus
|
41 |
+
WORKDIR /program/Fooocus
|
42 |
|
43 |
RUN mkdir ./outputs
|
44 |
|
|
|
|
|
45 |
# Run the entry_with_update.py script with the specified arguments
|
46 |
CMD ["python", "launch.py", "--share"]
|