This commit is contained in:
digitallamb 2025-07-15 22:49:49 +00:00 committed by GitHub
commit 09c2a7eabd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 170 additions and 2 deletions

View file

@ -4,6 +4,15 @@ ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
RUN apt-get update && apt-get install -y git && apt-get clean
# add some packages for some custom nodes in comfyui
RUN apt-get install 'libglib2.0-0' -y
RUN apt-get update
RUN apt-get install 'libgl1-mesa-glx' -y
RUN apt-get install 'python-dev' -y
# install pip package for codeformer face detection custom node
RUN pip install lpips
ENV ROOT=/stable-diffusion
RUN --mount=type=cache,target=/root/.cache/pip \
git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
@ -13,6 +22,15 @@ RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements.txt
WORKDIR ${ROOT}
ARG BRANCH=master SHA=c97be4db91d4a249c19afdf88fa1cf3268544e45
RUN --mount=type=cache,target=/root/.cache/pip \
git fetch && \
git checkout ${BRANCH} && \
git reset --hard ${SHA} && \
pip install -r requirements.txt
# add info
COPY . /docker/
RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT}