@@ -24,8 +24,9 @@ FROM python:3.10.9-slim
2424
2525ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
2626
27- RUN --mount=type=cache,target=/root/.cache/pip \
28- pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
27+ RUN --mount=type=cache,target=/root/.cache/pip pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
28+
29+ # RUN --mount=type=cache,target=/root/.cache/pip pip install torch==2.0.0+cu118 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
2930
3031RUN apt-get update && apt install fonts-dejavu-core rsync git jq moreutils -y && apt-get clean
3132
@@ -61,7 +62,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
6162RUN apt-get -y install libgoogle-perftools-dev && apt-get clean
6263ENV LD_PRELOAD=libtcmalloc.so
6364
64- ARG SHA=a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
65+ ARG SHA=5ab7f213bec2f816f9c5644becb32eb72c8ffb89
6566RUN --mount=type=cache,target=/root/.cache/pip \
6667 cd stable-diffusion-webui && \
6768 git fetch && \
7677 python3 /docker/info.py ${ROOT}/modules/ui.py && \
7778 mv ${ROOT}/style.css ${ROOT}/user.css && \
7879 # one of the ugliest hacks I ever wrote \
79- sed -i 's/in_app_dir = .*/in_app_dir = True/g' /usr/local/lib/python3.10/site-packages/gradio/routes.py
80+ sed -i 's/in_app_dir = .*/in_app_dir = True/g' /usr/local/lib/python3.10/site-packages/gradio/routes.py && \
81+ git config --global --add safe.directory '*'
8082
8183WORKDIR ${ROOT}
8284ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
0 commit comments