From 8232f56827ca186bcae6f6b39f1bfd30bf989391 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 23 Jul 2025 16:16:43 +0800 Subject: [PATCH] =?UTF-8?q?.=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ebb0df3..3bbbc29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ RUN apt-get update && \ apt-get install -y --no-install-recommends \ build-essential \ git \ + unzip \ curl && \ rm -rf /var/lib/apt/lists/* @@ -39,7 +40,12 @@ RUN pip install --no-cache-dir ./evalscope # ✅ 安装 nltk 并下载 punkt 模型(到 /nltk_data) RUN pip install --no-cache-dir nltk && \ - python3 -m nltk.downloader -d /nltk_data punkt punkt_tab + python3 -m nltk.downloader -d /nltk_data punkt + +COPY punkt_tab.zip ./punkt_tab.zip + +RUN mkdir -p /usr/local/nltk_data/tokenizers && \ + unzip -q punkt_tab.zip -d /usr/local/nltk_data/tokenizers # 拷贝入口文件 COPY gradio_ui.py .