Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -33,18 +33,16 @@ RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releas
|
|
33 |
RUN pip install --pre triton
|
34 |
RUN pip install numexpr
|
35 |
|
|
|
36 |
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui
|
37 |
-
RUN cd stable-diffusion-webui
|
38 |
-
|
39 |
RUN git submodule update --init --recursive
|
40 |
RUN sed -i '$a fastapi==0.90.0' requirements_versions.txt
|
|
|
|
|
41 |
|
42 |
-
# NEW LINE TO INSTALL DEPENDENCIES
|
43 |
RUN pip install -r stable-diffusion-webui/requirements.txt
|
44 |
|
45 |
-
RUN sed -i -e '/prepare_environment()/a\ os.system(f\"sed -i -e '\''s/dict()))/dict())).cuda()/g'\'' repositories/stable-diffusion-stability-ai/ldm/util.py\")' launch.py
|
46 |
-
RUN sed -i -e 's/ start()/ #start()/g' launch.py
|
47 |
-
|
48 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
49 |
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
50 |
ADD --chown=user https://raw.githubusercontent.com/darkstorm2150/webui/main/OpenGen_header_patch.py /content/header_patch.py
|
|
|
33 |
RUN pip install --pre triton
|
34 |
RUN pip install numexpr
|
35 |
|
36 |
+
# Clone repository and update submodules in a single RUN command
|
37 |
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui
|
38 |
+
RUN cd stable-diffusion-webui
|
|
|
39 |
RUN git submodule update --init --recursive
|
40 |
RUN sed -i '$a fastapi==0.90.0' requirements_versions.txt
|
41 |
+
RUN sed -i -e '/prepare_environment()/a\ os.system(f\"sed -i -e '\''s/dict()))/dict())).cuda()/g'\'' repositories/stable-diffusion-stability-ai/ldm/util.py\")' launch.py
|
42 |
+
RUN sed -i -e 's/ start()/ #start()/g' launch.py
|
43 |
|
|
|
44 |
RUN pip install -r stable-diffusion-webui/requirements.txt
|
45 |
|
|
|
|
|
|
|
46 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
47 |
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
48 |
ADD --chown=user https://raw.githubusercontent.com/darkstorm2150/webui/main/OpenGen_header_patch.py /content/header_patch.py
|