mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-21 06:14:00 +00:00
Merge eb46942ed6 into 802d0bcd68
This commit is contained in:
commit
09c2a7eabd
8 changed files with 170 additions and 2 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue