Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -30
Dockerfile
CHANGED
@@ -1,38 +1,12 @@
|
|
1 |
-
|
2 |
-
# FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
|
3 |
-
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/11.7.1/ubuntu2204/base/Dockerfile
|
4 |
-
FROM nvidia/cuda:11.7.1-base-ubuntu22.04
|
5 |
ENV DEBIAN_FRONTEND noninteractive
|
6 |
|
7 |
-
RUN apt
|
8 |
|
9 |
RUN adduser --disabled-password --gecos '' user
|
10 |
RUN mkdir /content && chown -R user:user /content
|
11 |
WORKDIR /content
|
12 |
USER user
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
# or build with the same VM "pip wheel git+https://github.com/facebookresearch/xformers#egg=xformers"
|
17 |
-
RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.16/xformers-0.0.16+814314d.d20230118-cp310-cp310-linux_x86_64.whl
|
18 |
-
RUN pip install --pre triton
|
19 |
-
RUN pip install numexpr
|
20 |
-
|
21 |
-
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui
|
22 |
-
RUN sed -i '$a fastapi==0.90.0' /content/stable-diffusion-webui/requirements_versions.txt
|
23 |
-
RUN sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/dict()))/dict())).cuda()/g\"'' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/util.py""")''' /content/stable-diffusion-webui/launch.py
|
24 |
-
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
25 |
-
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
26 |
-
|
27 |
-
ADD --chown=user https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py /content/stable-diffusion-webui/scripts/run_n_times.py
|
28 |
-
RUN git clone https://github.com/camenduru/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
|
29 |
-
RUN git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
|
30 |
-
RUN git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
|
31 |
-
RUN git clone https://github.com/camenduru/sd-civitai-browser /content/stable-diffusion-webui/extensions/sd-civitai-browser
|
32 |
-
RUN git clone https://github.com/camenduru/sd-webui-additional-networks /content/stable-diffusion-webui/extensions/sd-webui-additional-networks
|
33 |
-
|
34 |
-
ADD --chown=user https://huggingface.co/ckpt/anything-v3-vae-swapped/resolve/main/anything-v3-vae-swapped.ckpt /content/stable-diffusion-webui/models/Stable-diffusion/anything-v3-vae-swapped.ckpt
|
35 |
-
|
36 |
-
EXPOSE 7860
|
37 |
-
|
38 |
-
CMD cd /content/stable-diffusion-webui && python webui.py --xformers --listen --enable-insecure-extension-access
|
|
|
1 |
+
FROM ubuntu:22.04
|
|
|
|
|
|
|
2 |
ENV DEBIAN_FRONTEND noninteractive
|
3 |
|
4 |
+
RUN apt install wget git python3
|
5 |
|
6 |
RUN adduser --disabled-password --gecos '' user
|
7 |
RUN mkdir /content && chown -R user:user /content
|
8 |
WORKDIR /content
|
9 |
USER user
|
10 |
|
11 |
+
ADD https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh
|
12 |
+
RUN bash webui.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|