mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-03 14:14:18 +01:00
parent
55d0591aab
commit
abf5173b04
|
|
@ -6,14 +6,15 @@ RUN --mount=type=cache,target=/root/.cache/pip pip install torch==1.13.0 torchvi
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git && apt-get clean
|
RUN apt-get update && apt-get install -y git && apt-get clean
|
||||||
|
|
||||||
|
ARG BRANCH=master
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
git clone https://github.com/comfyanonymous/ComfyUI.git stable-diffusion && \
|
git clone https://github.com/comfyanonymous/ComfyUI.git stable-diffusion && \
|
||||||
cd stable-diffusion && \
|
cd stable-diffusion && \
|
||||||
git checkout master && \
|
git checkout ${BRANCH} && \
|
||||||
git reset --hard 884ea653c8d6fe19b3724f45a04a0d74cd881f2f && \
|
git reset --hard 884ea653c8d6fe19b3724f45a04a0d74cd881f2f && \
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
ARG BRANCH=master SHA=884ea653c8d6fe19b3724f45a04a0d74cd881f2f
|
ARG SHA=
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
cd stable-diffusion && \
|
cd stable-diffusion && \
|
||||||
git fetch && \
|
git fetch && \
|
||||||
|
|
@ -33,4 +34,5 @@ ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
ENV PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
|
ENV PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
ENTRYPOINT ["/docker/entrypoint.sh"]
|
ENTRYPOINT ["/docker/entrypoint.sh"]
|
||||||
|
|
||||||
CMD python -u main.py --listen --port 7860 ${CLI_ARGS}
|
CMD python -u main.py --listen --port 7860 ${CLI_ARGS}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue