parent
56d9763a73
commit
6a3826c80a
@ -27,7 +27,7 @@ services:
|
||||
<<: *base_service
|
||||
profiles: ["auto"]
|
||||
build: ./services/AUTOMATIC1111
|
||||
image: sd-auto:24
|
||||
image: sd-auto:25
|
||||
environment:
|
||||
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
|
||||
|
||||
|
@ -32,17 +32,17 @@ FROM python:3.10-slim
|
||||
|
||||
SHELL ["/bin/bash", "-ceuxo", "pipefail"]
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 PIP_NO_CACHE_DIR=1
|
||||
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
|
||||
|
||||
RUN pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
|
||||
RUN PIP_NO_CACHE_DIR=1 pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
|
||||
|
||||
RUN apt-get update && apt install fonts-dejavu-core rsync git jq moreutils -y && apt-get clean
|
||||
|
||||
|
||||
RUN <<EOF
|
||||
RUN --mount=type=cache,target=/root/.cache/pip <<EOF
|
||||
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
|
||||
cd stable-diffusion-webui
|
||||
git reset --hard 98947d173e3f1667eba29c904f681047dea9de90
|
||||
git reset --hard 4af3ca5393151d61363c30eef4965e694eeac15e
|
||||
pip install -r requirements_versions.txt
|
||||
EOF
|
||||
|
||||
@ -68,7 +68,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
# Note: don't update the sha of previous versions because the install will take forever
|
||||
# instead, update the repo state in a later step
|
||||
|
||||
ARG SHA=685f9631b56ff8bd43bce24ff5ce0f9a0e9af490
|
||||
ARG SHA=4af3ca5393151d61363c30eef4965e694eeac15e
|
||||
RUN --mount=type=cache,target=/root/.cache/pip <<EOF
|
||||
cd stable-diffusion-webui
|
||||
git fetch
|
||||
@ -83,8 +83,7 @@ COPY . /docker
|
||||
|
||||
RUN <<EOF
|
||||
python3 /docker/info.py ${ROOT}/modules/ui.py
|
||||
mv ${ROOT}/style.css ${ROOT}/user.css
|
||||
sed -i 's/os.rename(tmpdir, target_dir)/shutil.move(tmpdir,target_dir)/' ${ROOT}/modules/ui_extensions.py
|
||||
mv ${ROOT}/style.css ${ROOT}/user.css
|
||||
EOF
|
||||
|
||||
WORKDIR ${ROOT}
|
||||
|
Loading…
Reference in New Issue
Block a user