diff --git a/docker-compose.yml b/docker-compose.yml index 8b7ba321a..f5c953be6 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 89a3a3224..f4590b91f 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 <