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 .