This commit is contained in:
Simon McNair 2025-01-16 20:28:44 +00:00
parent f859c3b221
commit 3ed0a6acf7
5 changed files with 4 additions and 9 deletions

View file

@ -1,4 +1,3 @@
version: '3.9'
x-base_service: &base_service
ports:
- "${WEBUI_PORT:-7860}:7860"

View file

@ -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
@ -30,7 +30,7 @@ WORKDIR /
RUN --mount=type=cache,target=/root/.cache/pip \
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
cd stable-diffusion-webui && \
git reset --hard v1.9.4 && \
git reset --hard v1.10.0 && \
pip install -r requirements_versions.txt

View file

@ -8,4 +8,4 @@ git init
git remote add origin "$2"
git fetch origin "$3" --depth=1
git reset --hard "$3"
rm -rf .git
rm -rf .git

View file

@ -2,7 +2,6 @@ FROM alpine/git:2.36.2 AS download
COPY clone.sh /clone.sh
RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf \
&& 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 && \
pip install -r requirements_versions.txt
ENV ROOT=/stable-diffusion-webui-forge
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 \
pip install torchvision==0.18.1
RUN --mount=type=cache,target=/root/.cache/pip \
pip install pyngrok xformers==0.0.27 pytorch_lightning torchdiffeq torchsde \
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 \
@ -75,4 +72,4 @@ ENV NVIDIA_VISIBLE_DEVICES=all
ENV CLI_ARGS=""
EXPOSE 7860
ENTRYPOINT ["/docker/entrypoint.sh"]
CMD python -u webui.py --listen --port 7860 ${CLI_ARGS}
CMD python -u webui.py --listen --port 7860 ${CLI_ARGS}

View file

@ -76,4 +76,3 @@ if __name__ == '__main__':
else:
check_and_replace_config(DEFAULT_FILEPATH)