FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 FROM python:3.10.12 # WORKDIR /code RUN apt-get update && apt-get install -y \ git \ make build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git-lfs \ ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \ && rm -rf /var/lib/apt/lists/* \ && git lfs install RUN git clone https://github.com/lllyasviel/Fooocus.git WORKDIR /Fooocus # RUN cd Fooocus RUN python3 -m venv fooocus_env # RUN source fooocus_env/bin/activate RUN pip install -r requirements_versions.txt ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ PYTHONPATH=$HOME/app \ PYTHONUNBUFFERED=1 \ GRADIO_ALLOW_FLAGGING=never \ GRADIO_NUM_PORTS=1 \ GRADIO_SERVER_NAME=0.0.0.0 \ GRADIO_SERVER_PORT=7860 \ GRADIO_THEME=huggingface \ SYSTEM=spaces # RUN source fooocus_env/bin/activate RUN python entry_with_update.py --listen --port 7860 --always-cpu --share