From ac033b62cf19b40b3e2fe5280af6e7d397a01165 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Fri, 15 Nov 2024 16:57:01 +0800 Subject: [PATCH] fix tika-server issue (#3439) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- Dockerfile | 3 ++- Dockerfile.slim | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a6c69800f..41465c69d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -116,7 +116,8 @@ COPY nltk_data /root/nltk_data # https://github.com/chrismattmann/tika-python # This is the only way to run python-tika without internet access. Without this set, the default is to check the tika version and pull latest every time from Apache. -COPY tika-server-standard-3.0.0.jar tika-server-standard-3.0.0.jar.md5 ./ +COPY tika-server-standard-3.0.0.jar /ragflow/tika-server-standard.jar +COPY tika-server-standard-3.0.0.jar.md5 /ragflow/tika-server-standard.jar.md5 ENV TIKA_SERVER_JAR="file:///ragflow/tika-server-standard.jar" # Copy cl100k_base diff --git a/Dockerfile.slim b/Dockerfile.slim index c3059cb23..2c1dfbf97 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -109,7 +109,9 @@ COPY nltk_data /root/nltk_data # https://github.com/chrismattmann/tika-python # This is the only way to run python-tika without internet access. Without this set, the default is to check the tika version and pull latest every time from Apache. -COPY tika-server-standard-3.0.0.jar tika-server-standard-3.0.0.jar.md5 ./ + +COPY tika-server-standard-3.0.0.jar /ragflow/tika-server-standard.jar +COPY tika-server-standard-3.0.0.jar.md5 /ragflow/tika-server-standard.jar.md5 ENV TIKA_SERVER_JAR="file:///ragflow/tika-server-standard.jar" # Copy cl100k_base