# syntax=docker/dockerfile:1 FROM python:3.10-slim SHELL ["/bin/bash", "-ceuxo", "pipefail"] ENV DEBIAN_FRONTEND=noninteractive PIP_EXISTS_ACTION=w PIP_PREFER_BINARY=1 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 RUN git clone https://github.com/invoke-ai/InvokeAI.git /stable-diffusion WORKDIR /stable-diffusion RUN --mount=type=cache,target=/root/.cache/pip <