a1111 (7337fd89e98a8b394359647956da8655b89ee41c)

Published 2026-03-29 08:10:10 +08:00 by kstenhouse

Installation

docker pull git.flexiblyrigid.au/kstenhouse/a1111:7337fd89e98a8b394359647956da8655b89ee41c
sha256:31e450211fdc6d4489046163fe5b84811e1cf42e76e69dab59dc9300b4406985

About this package

[stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) Linux Container Image Sources.

Image layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:63d5ab3ef0aab308c0e71cb67292c5467f60deafa9b0418cbb220affcd078444 in /
CMD ["/bin/bash"]
ENV NVARCH=x86_64
ENV NVIDIA_REQUIRE_CUDA=cuda>=12.1 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 brand=tesla,driver>=525,driver<526 brand=unknown,driver>=525,driver<526 brand=nvidia,driver>=525,driver<526 brand=nvidiartx,driver>=525,driver<526 brand=geforce,driver>=525,driver<526 brand=geforcertx,driver>=525,driver<526 brand=quadro,driver>=525,driver<526 brand=quadrortx,driver>=525,driver<526 brand=titan,driver>=525,driver<526 brand=titanrtx,driver>=525,driver<526
ENV NV_CUDA_CUDART_VERSION=12.1.105-1
ENV NV_CUDA_COMPAT_PACKAGE=cuda-compat-12-1
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && curl -fsSLO https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/${NVARCH}/cuda-keyring_1.0-1_all.deb && dpkg -i cuda-keyring_1.0-1_all.deb && apt-get purge --autoremove -y curl && rm -rf /var/lib/apt/lists/* # buildkit
ENV CUDA_VERSION=12.1.1
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-cudart-12-1=${NV_CUDA_CUDART_VERSION} ${NV_CUDA_COMPAT_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf # buildkit
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
COPY NGC-DL-CONTAINER-LICENSE / # buildkit
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
ENV NV_CUDA_LIB_VERSION=12.1.1-1
ENV NV_NVTX_VERSION=12.1.105-1
ENV NV_LIBNPP_VERSION=12.1.0.40-1
ENV NV_LIBNPP_PACKAGE=libnpp-12-1=12.1.0.40-1
ENV NV_LIBCUSPARSE_VERSION=12.1.0.106-1
ENV NV_LIBCUBLAS_PACKAGE_NAME=libcublas-12-1
ENV NV_LIBCUBLAS_VERSION=12.1.3.1-1
ENV NV_LIBCUBLAS_PACKAGE=libcublas-12-1=12.1.3.1-1
ENV NV_LIBNCCL_PACKAGE_NAME=libnccl2
ENV NV_LIBNCCL_PACKAGE_VERSION=2.17.1-1
ENV NCCL_VERSION=2.17.1-1
ENV NV_LIBNCCL_PACKAGE=libnccl2=2.17.1-1+cuda12.1
ARG TARGETARCH
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-libraries-12-1=${NV_CUDA_LIB_VERSION} ${NV_LIBNPP_PACKAGE} cuda-nvtx-12-1=${NV_NVTX_VERSION} libcusparse-12-1=${NV_LIBCUSPARSE_VERSION} ${NV_LIBCUBLAS_PACKAGE} ${NV_LIBNCCL_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-mark hold ${NV_LIBCUBLAS_PACKAGE_NAME} ${NV_LIBNCCL_PACKAGE_NAME} # buildkit
COPY entrypoint.d/ /opt/nvidia/entrypoint.d/ # buildkit
COPY nvidia_entrypoint.sh /opt/nvidia/ # buildkit
ENV NVIDIA_PRODUCT_NAME=CUDA
ENTRYPOINT ["/opt/nvidia/nvidia_entrypoint.sh"]
COPY entrypoint.sh /app/entrypoint.sh # buildkit
RUN /bin/sh -c apt update && apt install -y python3 python3-pip python3-venv git wget libgl1-mesa-dev libglib2.0-0 libsm6 libxrender1 libxext6 libgoogle-perftools4 libtcmalloc-minimal4 libcusparse11 xdg-utils bc aria2 && rm -rf /var/lib/apt/lists/* && groupadd -g 1000 sdgroup && useradd -m -s /bin/bash -u 1000 -g 1000 --home /app sduser && ln -s /app /home/sduser && chown -R sduser:sdgroup /app && chmod +x /app/entrypoint.sh # buildkit
USER sduser
WORKDIR /app
RUN /bin/sh -c git clone -b master https://github.com/AUTOMATIC1111/stable-diffusion-webui.git stable-diffusion-webui && cd stable-diffusion-webui && ./webui.sh -h # buildkit
WORKDIR /app/stable-diffusion-webui
VOLUME [/app/stable-diffusion-webui/extensions]
VOLUME [/app/stable-diffusion-webui/textual_inversion_templates]
VOLUME [/app/stable-diffusion-webui/embeddings]
VOLUME [/app/stable-diffusion-webui/inputs]
VOLUME [/app/stable-diffusion-webui/models]
VOLUME [/app/stable-diffusion-webui/outputs]
VOLUME [/app/stable-diffusion-webui/localizations]
EXPOSE map[8080/tcp:{}]
ENV LD_PRELOAD=/usr/local/cuda-12.1/targets/x86_64-linux/lib/libcusparse.so.12
ENV PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.9,max_split_size_mb:512
ENTRYPOINT ["/app/entrypoint.sh" "--update-check" "--xformers" "--listen" "--port" "8080"]
USER root
RUN /bin/sh -c apt-get update && apt-get install -y libgl1 libglib2.0-0 cmake pkg-config libcairo2-dev && rm -rf /var/lib/apt/lists/* # buildkit
USER sduser
RUN /bin/sh -c /app/stable-diffusion-webui/venv/bin/pip install "setuptools==59.8.0" wheel "numpy<2" "gradio==3.41.2" "insightface==0.7.3" "albumentations==1.4.3" "onnx==1.16.1" "onnxruntime-gpu==1.16.3" torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 # buildkit
RUN /bin/sh -c cd /app/stable-diffusion-webui && git fetch origin dev && git checkout dev && git pull origin dev # buildkit
RUN /bin/sh -c grep -q 'no-build-isolation' /app/stable-diffusion-webui/modules/launch_utils.py || sed -i 's/--prefer-binary/--prefer-binary --no-build-isolation/g' /app/stable-diffusion-webui/modules/launch_utils.py # buildkit
WORKDIR /app/stable-diffusion-webui
ENTRYPOINT []
CMD ["/app/stable-diffusion-webui/venv/bin/python" "launch.py" "--listen" "--port" "7860" "--api" "--enable-insecure-extension-access" "--medvram" "--opt-split-attention" "--skip-torch-cuda-test"]

Labels

Key Value
maintainer NVIDIA CORPORATION <cudatools@nvidia.com>
org.opencontainers.image.created 2025-05-18T03:23:54.504Z
org.opencontainers.image.description [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) Linux Container Image Sources.
org.opencontainers.image.licenses
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.revision 55aa46a0f08fe568ba8648bda4b10c0da7a19ac4
org.opencontainers.image.source https://github.com/universonic/docker-stable-diffusion-webui
org.opencontainers.image.title docker-stable-diffusion-webui
org.opencontainers.image.url https://github.com/universonic/docker-stable-diffusion-webui
org.opencontainers.image.version nightly-20250518032354
Details
Container
2026-03-29 08:10:10 +08:00
0
OCI / Docker
linux/amd64
7.1 GiB
Versions (13) View all