From ff7b41f22fc6b43e1652976741dee49db079ca0a Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Wed, 21 Dec 2022 12:18:47 +0100 Subject: [PATCH] Smaller xformers wheel --- docker-compose.yml | 2 +- services/AUTOMATIC1111/Dockerfile | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9c88e49..2645dad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: <<: *base_service profiles: ["auto"] build: ./services/AUTOMATIC1111 - image: sd-auto:23 + image: sd-auto:24 environment: - CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api diff --git a/services/AUTOMATIC1111/Dockerfile b/services/AUTOMATIC1111/Dockerfile index ab53581..7d27a14 100644 --- a/services/AUTOMATIC1111/Dockerfile +++ b/services/AUTOMATIC1111/Dockerfile @@ -26,7 +26,7 @@ RUN . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interr FROM alpine:3 as xformers RUN apk add aria2 -RUN aria2c -x 10 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/3.1.0/xformers-0.0.15.dev0+4e3631d.d20221125-cp310-cp310-linux_x86_64.whl' +RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/4.0.0/xformers-0.0.16rc393-cp310-cp310-manylinux2014_x86_64.whl' FROM python:3.10-slim @@ -48,8 +48,10 @@ EOF COPY --from=xformers /wheel.whl xformers-0.0.15-cp310-cp310-linux_x86_64.whl -RUN pip install xformers-0.0.15-cp310-cp310-linux_x86_64.whl && rm xformers-0.0.15-cp310-cp310-linux_x86_64.whl - +RUN --mount=type=cache,target=/root/.cache/pip <