@@ -24,8 +24,9 @@ FROM python:3.10.9-slim
24
24
25
25
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
26
26
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
29
30
30
31
RUN apt-get update && apt install fonts-dejavu-core rsync git jq moreutils -y && apt-get clean
31
32
@@ -61,7 +62,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
61
62
RUN apt-get -y install libgoogle-perftools-dev && apt-get clean
62
63
ENV LD_PRELOAD=libtcmalloc.so
63
64
64
- ARG SHA=a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
65
+ ARG SHA=5ab7f213bec2f816f9c5644becb32eb72c8ffb89
65
66
RUN --mount=type=cache,target=/root/.cache/pip \
66
67
cd stable-diffusion-webui && \
67
68
git fetch && \
76
77
python3 /docker/info.py ${ROOT}/modules/ui.py && \
77
78
mv ${ROOT}/style.css ${ROOT}/user.css && \
78
79
# 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 '*'
80
82
81
83
WORKDIR ${ROOT}
82
84
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
0 commit comments