From c5c5b2b6f028105a5e75a6ee31f735c5c1f71fe1 Mon Sep 17 00:00:00 2001 From: simonmcnair <101189766+simonmcnair@users.noreply.github.com> Date: Mon, 10 Mar 2025 22:19:20 +0000 Subject: [PATCH] Update Dockerfile --- services/AUTOMATIC1111/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/services/AUTOMATIC1111/Dockerfile b/services/AUTOMATIC1111/Dockerfile index b0b0792..72e6a20 100644 --- a/services/AUTOMATIC1111/Dockerfile +++ b/services/AUTOMATIC1111/Dockerfile @@ -77,6 +77,13 @@ RUN pip install --upgrade typing-extensions RUN chown -R "$PUID:$PGID" "${ROOT}" +RUN \ + # 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) USER $PUID:$PGID @@ -95,12 +102,6 @@ RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \ ENV LD_PRELOAD=libtcmalloc.so COPY --chown=$PUID:$PGID . /docker -RUN \ - # 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 '*' WORKDIR ${ROOT} ENV NVIDIA_VISIBLE_DEVICES=all