This commit is contained in:
parent
ee2a0f5e04
commit
61ac6da4cd
|
|
@ -37,6 +37,10 @@ RUN pip install --no-cache-dir --prefix=/install \
|
|||
COPY evalscope.0.17.0/ ./evalscope
|
||||
RUN pip install --no-cache-dir --prefix=/install ./evalscope
|
||||
|
||||
# ✅ 加这一段
|
||||
RUN pip install --no-cache-dir --prefix=/install nltk && \
|
||||
python3 -m nltk.downloader -d /nltk_data punkt
|
||||
|
||||
# 拷贝入口文件
|
||||
COPY gradio_ui.py .
|
||||
|
||||
|
|
@ -48,6 +52,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||
|
||||
# 拷贝构建阶段所有已安装包
|
||||
COPY --from=builder /install /usr/local
|
||||
COPY --from=builder /nltk_data /usr/local/nltk_data
|
||||
COPY --from=builder /build/gradio_ui.py /app/gradio_ui.py
|
||||
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Reference in New Issue