Skip to content

Commit 55345d5

Browse files
AbdBarhoJordan-Lambda
authored andcommitted
Update Auto (AbdBarho#379)
Last version before pytorch 2 AUTOMATIC1111/stable-diffusion-webui@5ab7f21
1 parent 56c75c4 commit 55345d5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
<<: *base_service
2929
profiles: ["auto"]
3030
build: ./services/AUTOMATIC1111
31-
image: sd-auto:52
31+
image: sd-auto:53
3232
environment:
3333
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
3434

services/AUTOMATIC1111/Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ FROM python:3.10.9-slim
2424

2525
ENV 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

3031
RUN 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 \
6162
RUN apt-get -y install libgoogle-perftools-dev && apt-get clean
6263
ENV LD_PRELOAD=libtcmalloc.so
6364

64-
ARG SHA=a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
65+
ARG SHA=5ab7f213bec2f816f9c5644becb32eb72c8ffb89
6566
RUN --mount=type=cache,target=/root/.cache/pip \
6667
cd stable-diffusion-webui && \
6768
git fetch && \
@@ -76,7 +77,8 @@ RUN \
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

8183
WORKDIR ${ROOT}
8284
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility

0 commit comments

Comments
 (0)