FROM python:3.10-bullseye RUN useradd -ms /bin/bash -u 1000 stable-diffusion \ && apt update \ && apt install -y pciutils bc mesa-utils google-perftools \ && rm -rf /var/lib/apt/lists/* USER stable-diffusion EXPOSE 7860 ENTRYPOINT [ "/bootstrap.sh" ] CMD [] COPY bootstrap.sh /bootstrap.sh