From 1423b274b1aeff2dfc05acaaa7c0742deaf44dd8 Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Fri, 9 Dec 2022 16:50:46 +0100 Subject: [PATCH] Update Versions (#256) sygil: https://github.com/sd-webui/stable-diffusion-webui/commit/5291437085bddd16d752f811b6552419a2044d12 Also, switch to pip instead of conda because it is really slow invoke: https://github.com/invoke-ai/InvokeAI/commit/ed9186b09950f2652a0b07c93a08490f475435f7 --- docker-compose.yml | 5 +++-- services/invoke/Dockerfile | 14 ++++++++------ services/sygil/Dockerfile | 29 +++++++++++------------------ 3 files changed, 22 insertions(+), 26 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8b7ba32..f5c953b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,13 +42,14 @@ services: <<: *base_service profiles: ["sygil"] build: ./services/sygil/ - image: sd-sygil:12 + image: sd-sygil:13 environment: - CLI_ARGS=--optimized-turbo - USE_STREAMLIT=0 sygil-sl: <<: *sygil + profiles: ["sygil-sl"] environment: - USE_STREAMLIT=1 @@ -57,7 +58,7 @@ services: <<: *base_service profiles: ["invoke"] build: ./services/invoke/ - image: sd-invoke:10 + image: sd-invoke:11 environment: - PRELOAD=true - CLI_ARGS= diff --git a/services/invoke/Dockerfile b/services/invoke/Dockerfile index 89a3a32..f4590b9 100644 --- a/services/invoke/Dockerfile +++ b/services/invoke/Dockerfile @@ -3,10 +3,11 @@ FROM python:3.10-slim SHELL ["/bin/bash", "-ceuxo", "pipefail"] -ENV DEBIAN_FRONTEND=noninteractive PIP_EXISTS_ACTION=w PIP_PREFER_BINARY=1 PIP_NO_CACHE_DIR=1 +ENV DEBIAN_FRONTEND=noninteractive PIP_EXISTS_ACTION=w PIP_PREFER_BINARY=1 -RUN pip install torch==1.12.0+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 +RUN --mount=type=cache,target=/root/.cache/pip \ + pip install torch==1.12.0+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 RUN apt-get update && apt-get install git -y && apt-get clean @@ -14,7 +15,7 @@ RUN git clone https://github.com/invoke-ai/InvokeAI.git /stable-diffusion WORKDIR /stable-diffusion -RUN <