GPT-free-api
commited on
Commit
•
722ee5d
1
Parent(s):
cd3bb35
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -21,10 +21,12 @@ RUN pip install numexpr
|
|
21 |
RUN pip install httpx==0.24.1
|
22 |
|
23 |
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui
|
24 |
-
RUN pip install
|
|
|
25 |
RUN sed -i '$a fastapi==0.90.0' /content/stable-diffusion-webui/requirements_versions.txt
|
26 |
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
|
27 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
|
|
28 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
29 |
|
30 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|
|
|
21 |
RUN pip install httpx==0.24.1
|
22 |
|
23 |
RUN git clone -b v1.6 https://github.com/camenduru/stable-diffusion-webui
|
24 |
+
RUN pip install pip==23.3.1 # Downgrade pip to fix metadata issue
|
25 |
+
RUN pip install pytorch_lightning==1.7.6
|
26 |
RUN sed -i '$a fastapi==0.90.0' /content/stable-diffusion-webui/requirements_versions.txt
|
27 |
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
|
28 |
RUN sed -i -e 's/ start()/ #start()/g' /content/stable-diffusion-webui/launch.py
|
29 |
+
RUN cd stable-diffusion-webui && sed -i '/pytorch_lightning==1.9.4/d' requirements_versions.txt
|
30 |
RUN cd stable-diffusion-webui && python launch.py --skip-torch-cuda-test
|
31 |
|
32 |
ADD --chown=user https://github.com/camenduru/webui-docker/raw/main/env_patch.py /content/env_patch.py
|