From fe62a0ff0beba3123e16a8e045d3b47fb434ac0a Mon Sep 17 00:00:00 2001 From: simonmcnair <101189766+simonmcnair@users.noreply.github.com> Date: Mon, 24 Mar 2025 21:51:14 +0000 Subject: [PATCH] Update Dockerfile try a fix --- services/AUTOMATIC1111/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/AUTOMATIC1111/Dockerfile b/services/AUTOMATIC1111/Dockerfile index a4269dd..cc38822 100644 --- a/services/AUTOMATIC1111/Dockerfile +++ b/services/AUTOMATIC1111/Dockerfile @@ -79,11 +79,14 @@ RUN --mount=type=cache,target=/root/.cache/sd \ RUN pip install --upgrade typing-extensions -RUN \ +RUN if [ -d "/opt/conda/lib/python3.10" ]; then \ + sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py ;\ + elif [ -d "/opt/conda/lib/python3.11" ]; then \ + sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.11/site-packages/gradio/routes.py ;\ + fi && \ # mv ${ROOT}/style.css ${ROOT}/user.css && \ # one of the ugliest hacks I ever wrote \ # updated from 3.10.to 3.11 - sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.11/site-packages/gradio/routes.py && \ git config --global --add safe.directory '*' # drop permissions (if build targets non root)