Spaces:
Running
on
A10G
Running
on
A10G
Update Dockerfile
Browse files- Dockerfile +11 -6
Dockerfile
CHANGED
|
@@ -33,12 +33,17 @@ 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 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
| 44 |
RUN sed -i -e '/import image_from_url_text/r /content/env_patch.py' /content/stable-diffusion-webui/modules/ui.py
|
|
|
|
| 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
|