Skip to content

Commit 2a973d2

Browse files
fix: adjust dockerfile again
1 parent 0fe9d6f commit 2a973d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ COPY . /docker
6161
RUN \
6262
# mv ${ROOT}/style.css ${ROOT}/user.css && \
6363
# one of the ugliest hacks I ever wrote \
64-
sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \
64+
find /opt/conda /usr/local -name "gradio" -type d 2>/dev/null | head -1 | xargs -I {} find {} -name "routes.py" -exec sed -i 's/in_app_dir = .*/in_app_dir = True/g' {} \; && \
6565
git config --global --add safe.directory '*'
6666

6767
WORKDIR ${ROOT}

0 commit comments

Comments
 (0)