DockerFooocus / Dockerfile
HumbleWolf's picture
fix dockerfile
430af3b
# 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"]