Update auto (#274)

4af3ca5393

Merry Christmas 🎄
This commit is contained in:
AbdBarho
2022-12-26 09:50:29 +01:00
committed by GitHub
parent 56d9763a73
commit 6a3826c80a
2 changed files with 7 additions and 8 deletions

View File

@ -27,7 +27,7 @@ services:
<<: *base_service <<: *base_service
profiles: ["auto"] profiles: ["auto"]
build: ./services/AUTOMATIC1111 build: ./services/AUTOMATIC1111
image: sd-auto:24 image: sd-auto:25
environment: environment:
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api - CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api

View File

@ -32,17 +32,17 @@ FROM python:3.10-slim
SHELL ["/bin/bash", "-ceuxo", "pipefail"] 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 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 git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui cd stable-diffusion-webui
git reset --hard 98947d173e3f1667eba29c904f681047dea9de90 git reset --hard 4af3ca5393151d61363c30eef4965e694eeac15e
pip install -r requirements_versions.txt pip install -r requirements_versions.txt
EOF 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 # Note: don't update the sha of previous versions because the install will take forever
# instead, update the repo state in a later step # instead, update the repo state in a later step
ARG SHA=685f9631b56ff8bd43bce24ff5ce0f9a0e9af490 ARG SHA=4af3ca5393151d61363c30eef4965e694eeac15e
RUN --mount=type=cache,target=/root/.cache/pip <<EOF RUN --mount=type=cache,target=/root/.cache/pip <<EOF
cd stable-diffusion-webui cd stable-diffusion-webui
git fetch git fetch
@ -84,7 +84,6 @@ COPY . /docker
RUN <<EOF RUN <<EOF
python3 /docker/info.py ${ROOT}/modules/ui.py python3 /docker/info.py ${ROOT}/modules/ui.py
mv ${ROOT}/style.css ${ROOT}/user.css 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
EOF EOF
WORKDIR ${ROOT} WORKDIR ${ROOT}