Update ComfyUI to v0.3.10, reduce git clone size & install ComfyUI-Manager for easy plugin management

This commit is contained in:
Jonathan Dilks 2025-01-15 23:35:19 +00:00
parent 802d0bcd68
commit c227e2571f

View file

@ -1,4 +1,4 @@
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
@ -6,12 +6,13 @@ RUN apt-get update && apt-get install -y git && apt-get clean
ENV ROOT=/stable-diffusion ENV ROOT=/stable-diffusion
RUN --mount=type=cache,target=/root/.cache/pip \ RUN --mount=type=cache,target=/root/.cache/pip \
git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \ git clone -b v0.3.10 --depth=1 https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
cd ${ROOT} && \ cd ${ROOT} && \
git checkout master && \
git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \
pip install -r requirements.txt pip install -r requirements.txt
RUN git clone -b 3.6.5 --depth=1 https://github.com/ltdrdata/ComfyUI-Manager ${ROOT}/custom_nodes/comfyui-manager && \
pip install -r ${ROOT}/custom_nodes/comfyui-manager/requirements.txt
WORKDIR ${ROOT} WORKDIR ${ROOT}
COPY . /docker/ COPY . /docker/
RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT} RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT}