darkstorm2150 commited on
Commit
d0f684c
·
verified ·
1 Parent(s): 2cf4319

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -30,11 +30,12 @@ RUN pip install https://github.com/camenduru/stable-diffusion-webui-colab/releas
30
  RUN pip install --pre triton
31
  RUN pip install numexpr
32
 
33
- RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui
34
- RUN sed -i '$a fastapi==0.90.0' /content/stable-diffusion-webui/requirements_versions.txt
35
- 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
36
- RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
37
- RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
 
38
 
39
  ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
40
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
 
30
  RUN pip install --pre triton
31
  RUN pip install numexpr
32
 
33
+ RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui && \
34
+ cd stable-diffusion-webui && \
35
+ git submodule update --init --recursive && \
36
+ sed -i '$a fastapi==0.90.0' requirements_versions.txt && \
37
+ 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 && \
38
+ sed -i -e 's/ start()/ #start()/g' launch.py
39
 
40
  ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
41
  RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py