mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-12-06 02:15:19 -05:00
Compare commits
2 Commits
e4bfa892bf
...
fcf5486879
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcf5486879 | ||
|
|
cae1586b45 |
@@ -1,4 +1,4 @@
|
||||
FROM alpine/git:2.36.2 as download
|
||||
FROM alpine/git:latest as download
|
||||
|
||||
COPY clone.sh /clone.sh
|
||||
|
||||
@@ -16,7 +16,7 @@ RUN . /clone.sh google_blockly_prototypes https://github.com/lllyasviel/google_b
|
||||
RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git 6f7db241d2f8ba7457bac5ca9753331f0c266917
|
||||
|
||||
|
||||
FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime
|
||||
FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
|
||||
|
||||
@@ -54,11 +54,11 @@ ENV LD_PRELOAD=libtcmalloc.so
|
||||
|
||||
COPY . /docker
|
||||
|
||||
RUN \
|
||||
#RUN \
|
||||
# mv ${ROOT}/style.css ${ROOT}/user.css && \
|
||||
# one of the ugliest hacks I ever wrote \
|
||||
sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \
|
||||
git config --global --add safe.directory '*'
|
||||
#sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \
|
||||
#git config --global --add safe.directory '*'
|
||||
|
||||
WORKDIR ${ROOT}
|
||||
ENV NVIDIA_VISIBLE_DEVICES=all
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -Eeuox pipefail
|
||||
set -Eeox pipefail
|
||||
|
||||
mkdir -p /repositories/"$1"
|
||||
cd /repositories/"$1"
|
||||
git init
|
||||
git remote add origin "$2"
|
||||
git fetch origin "$3" --depth=1
|
||||
git reset --hard "$3"
|
||||
|
||||
if [ -n "$3" ]; then
|
||||
git fetch origin "$3" --depth=1
|
||||
git reset --hard "$3"
|
||||
fi
|
||||
|
||||
rm -rf .git
|
||||
|
||||
3
services/AUTOMATIC1111/Dockerfile
Normal file → Executable file
3
services/AUTOMATIC1111/Dockerfile
Normal file → Executable file
@@ -30,9 +30,10 @@ 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.1 && \
|
||||
pip install -r requirements_versions.txt
|
||||
|
||||
RUN pip install -U typing_extensions
|
||||
|
||||
ENV ROOT=/stable-diffusion-webui
|
||||
|
||||
|
||||
10
services/AUTOMATIC1111/clone.sh
Normal file → Executable file
10
services/AUTOMATIC1111/clone.sh
Normal file → Executable file
@@ -1,11 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -Eeuox pipefail
|
||||
set -Eeox pipefail
|
||||
|
||||
mkdir -p /repositories/"$1"
|
||||
cd /repositories/"$1"
|
||||
git init
|
||||
git remote add origin "$2"
|
||||
git fetch origin "$3" --depth=1
|
||||
git reset --hard "$3"
|
||||
|
||||
if [ -n "$3" ]; then
|
||||
git fetch origin "$3" --depth=1
|
||||
git reset --hard "$3"
|
||||
fi
|
||||
|
||||
rm -rf .git
|
||||
|
||||
0
services/AUTOMATIC1111/config.py
Normal file → Executable file
0
services/AUTOMATIC1111/config.py
Normal file → Executable file
3
services/comfy/Dockerfile
Normal file → Executable file
3
services/comfy/Dockerfile
Normal file → Executable 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
|
||||
|
||||
@@ -9,7 +9,6 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
|
||||
cd ${ROOT} && \
|
||||
git checkout master && \
|
||||
git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \
|
||||
pip install -r requirements.txt
|
||||
|
||||
WORKDIR ${ROOT}
|
||||
|
||||
0
services/comfy/extra_model_paths.yaml
Normal file → Executable file
0
services/comfy/extra_model_paths.yaml
Normal file → Executable file
0
services/download/Dockerfile
Normal file → Executable file
0
services/download/Dockerfile
Normal file → Executable file
0
services/download/checksums.sha256
Normal file → Executable file
0
services/download/checksums.sha256
Normal file → Executable file
0
services/download/links.txt
Normal file → Executable file
0
services/download/links.txt
Normal file → Executable file
Reference in New Issue
Block a user