unoffical docker file for https://github.com/AUTOMATIC1111/stable-diffusion-webui
181
[AT YOUR OWN RISK] unoffical dockerfile for https://github.com/AUTOMATIC1111/stable-diffusion-webui
AUTOMATIC1111 discussions 5049
i have set folder to 777 so bad model can run any malicious code on your server so find some other way and if no other way work ur welcome to use this one.
15gb of free space on disc for models and extentions
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
chmod -R 777 stable-diffusion-webui/
docker run -p 80:7860 -v /home/ubuntu/stable-diffusion-webui:/stable-diffusion-webui -e WEBUI_ARGS='--no-half --use-cpu all --ui-debug-mode --listen --enable-insecure-extension-access --gradio-queue --skip-torch-cuda-test' sumersm/unoffica-stable-diffusion-webui-docker
FROM python:3.10.6-bullseye
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 libcairo2-dev pkg-config python3-dev && rm -rf /var/lib/apt/lists/*
RUN adduser --disabled-password --gecos '' user
RUN mkdir /stable-diffusion-webui && chown -R user:user /stable-diffusion-webui
USER user
WORKDIR /stable-diffusion-webui
RUN pip3 install --upgrade pip
RUN pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
RUN pip install xformers==0.0.16
# RUN pip install triton
RUN pip install numexpr
RUN pip install packaging
RUN python -m pip install opencv-python-headless
RUN pip install gradio_client==0.2.7
EXPOSE 7860
ENV WEBUI_ARGS="--no-half --use-cpu all --ui-debug-mode --listen --enable-insecure-extension-access --gradio-queue"
CMD git config --global --add safe.directory "*" && ./webui.sh ${WEBUI_ARGS}
for more info on flags reffer to AUTOMATIC1111
for support feel free to contact sumersm
Content type
Image
Digest
sha256:4e10fc625…
Size
541 MB
Last updated
about 3 years ago
docker pull sumersm/unoffica-stable-diffusion-webui-docker:v2