Add Forge

Add Automatic1111-Forge:
https://github.com/lllyasviel/stable-diffusion-webui-forge
This commit is contained in:
theunpleasantowl
2024-11-19 20:28:13 -05:00
parent 802d0bcd68
commit cae1586b45
13 changed files with 285 additions and 21 deletions

3
services/AUTOMATIC1111/Dockerfile Normal file → Executable file
View 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
View 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
View File