From 8f74cec7f91914e91ff9a42976531cef878b8664 Mon Sep 17 00:00:00 2001 From: simonmcnair <101189766+simonmcnair@users.noreply.github.com> Date: Mon, 10 Mar 2025 22:18:55 +0000 Subject: [PATCH] Update Dockerfile sed needs root for the dir it's in --- services/forge/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/services/forge/Dockerfile b/services/forge/Dockerfile index 2134893..d9464f4 100644 --- a/services/forge/Dockerfile +++ b/services/forge/Dockerfile @@ -76,6 +76,12 @@ RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \ RUN chown -R "$PUID:$PGID" "${ROOT}" +RUN \ + # mv ${ROOT}/style.css ${ROOT}/user.css && \ + # one of the ugliest hacks I ever wrote \ + sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \ + git config --global --add safe.directory '*' + # drop permissions (if build targets non root) USER $PUID:$PGID @@ -105,11 +111,6 @@ 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 \ - sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \ - git config --global --add safe.directory '*' WORKDIR ${ROOT} ENV NVIDIA_VISIBLE_DEVICES=all