diff --git a/Dockerfile b/Dockerfile index fde14252671f25cf3c199b705a2582e56839b50a..90e22e4441fd08c9a0c058787ad79b804481fa98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM nvidia/cuda:12.3.0-runtime-ubuntu22.04 -ENV VERSION=v1.6.1 +ENV VERSION=v1.7.0 ARG VERSION ENV DEBIAN_FRONTEND=noninteractive @@ -26,5 +26,4 @@ RUN pip install --extra-index-url https://pypi.nvidia.com -r /tmp/requirements_a EXPOSE 7860 -ENTRYPOINT ["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access"] -CMD ["--api", "--opt-sdp-no-mem-attention", "--opt-channelslast", "--no-half-vae"] +ENTRYPOINT ["python", "launch.py", "--listen", "--data-dir", "/app/data", "--disable-console-progressbars", "--enable-insecure-extension-access", "--api"] diff --git a/README.md b/README.md index 2f839cea87ca70934e43b40c0de20e87a8967bc7..3d2092024a696ecaac3a31d7004a4974135e8f90 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,11 @@ docker push ${IMAGE_NAME}:${VERSION} docker push ${IMAGE_NAME}:latest ``` +### Building an OCI image +``` +nerdctl build --progress=plain --build-arg="VERSION=${VERSION}" --output="type=oci,name=${IMAGE_NAME}:${VERSION},push=true" -t ${IMAGE_NAME}:${VERSION} . +``` + ## Run the container Run the image without retaining any data or outputs on exit: @@ -39,3 +44,4 @@ docker run --tty --gpus all --rm --name stable-diffusion-webui -p 7860:7860 \ # Troubleshooting * There is no output to the console when starting the image until you generate an image. This can be fixed by adding the `--tty` argument after `docker run` + diff --git a/requirements_add.txt b/requirements_add.txt index 589e61bd35269f037e24808fa04073d94590a023..9dc8e29ee6a04512225af59aa8a86bc47188d60b 100644 --- a/requirements_add.txt +++ b/requirements_add.txt @@ -1,3 +1,4 @@ +# Stable-Diffusion-WebUI-TensorRT nvidia-cudnn-cu11==8.9.4.25 tensorrt==9.0.1.post11.dev4 tensorrt-libs==9.0.1.post11.dev4 @@ -7,3 +8,14 @@ polygraphy==0.49.0 onnx-graphsurgeon==0.3.25 onnxruntime==1.16.3 colored==2.2.3 + +# sd-webui-controlnet +mediapipe==0.10.8 +svglib==1.5.1 +fvcore==0.1.5.post20221221 + +# sd-civitai-browser-plus +ZipUnicode==1.1.1 +Send2Trash==1.8.2 +beautifulsoup4==4.12.2 +fake-useragent==1.4.0