mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-12-06 07:12:11 +01:00
updates
This commit is contained in:
parent
f859c3b221
commit
3ed0a6acf7
|
|
@ -1,4 +1,3 @@
|
||||||
version: '3.9'
|
|
||||||
x-base_service: &base_service
|
x-base_service: &base_service
|
||||||
ports:
|
ports:
|
||||||
- "${WEBUI_PORT:-7860}:7860"
|
- "${WEBUI_PORT:-7860}:7860"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine/git:2.36.2 as download
|
FROM alpine/git:2.36.2 AS download
|
||||||
|
|
||||||
COPY clone.sh /clone.sh
|
COPY clone.sh /clone.sh
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ WORKDIR /
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
|
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
|
||||||
cd stable-diffusion-webui && \
|
cd stable-diffusion-webui && \
|
||||||
git reset --hard v1.9.4 && \
|
git reset --hard v1.10.0 && \
|
||||||
pip install -r requirements_versions.txt
|
pip install -r requirements_versions.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ git init
|
||||||
git remote add origin "$2"
|
git remote add origin "$2"
|
||||||
git fetch origin "$3" --depth=1
|
git fetch origin "$3" --depth=1
|
||||||
git reset --hard "$3"
|
git reset --hard "$3"
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
|
|
@ -2,7 +2,6 @@ FROM alpine/git:2.36.2 AS download
|
||||||
|
|
||||||
COPY clone.sh /clone.sh
|
COPY clone.sh /clone.sh
|
||||||
|
|
||||||
|
|
||||||
RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf \
|
RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf \
|
||||||
&& rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif
|
&& rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif
|
||||||
|
|
||||||
|
|
@ -35,7 +34,6 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
sed -i '/torch/d' requirements_versions.txt && \
|
sed -i '/torch/d' requirements_versions.txt && \
|
||||||
pip install -r requirements_versions.txt
|
pip install -r requirements_versions.txt
|
||||||
|
|
||||||
|
|
||||||
ENV ROOT=/stable-diffusion-webui-forge
|
ENV ROOT=/stable-diffusion-webui-forge
|
||||||
|
|
||||||
COPY --from=download /repositories/ ${ROOT}/repositories/
|
COPY --from=download /repositories/ ${ROOT}/repositories/
|
||||||
|
|
@ -51,7 +49,6 @@ RUN git clone https://github.com/lllyasviel/huggingface_guess.git /tmp/huggingfa
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
pip install torchvision==0.18.1
|
pip install torchvision==0.18.1
|
||||||
|
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
pip install pyngrok xformers==0.0.27 pytorch_lightning torchdiffeq torchsde \
|
pip install pyngrok xformers==0.0.27 pytorch_lightning torchdiffeq torchsde \
|
||||||
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 \
|
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 \
|
||||||
|
|
@ -75,4 +72,4 @@ ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
ENV CLI_ARGS=""
|
ENV CLI_ARGS=""
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
ENTRYPOINT ["/docker/entrypoint.sh"]
|
ENTRYPOINT ["/docker/entrypoint.sh"]
|
||||||
CMD python -u webui.py --listen --port 7860 ${CLI_ARGS}
|
CMD python -u webui.py --listen --port 7860 ${CLI_ARGS}
|
||||||
|
|
@ -76,4 +76,3 @@ if __name__ == '__main__':
|
||||||
else:
|
else:
|
||||||
check_and_replace_config(DEFAULT_FILEPATH)
|
check_and_replace_config(DEFAULT_FILEPATH)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue