From a200a614da509af1f99354d32b9547d7fe0639c7 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 8 Jul 2025 08:56:35 +0800 Subject: [PATCH] . --- Dockerfile | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 100fa72..bc2dc83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive -# 安装 Python 3.10 +# 安装 Python 3.10 和基础工具 RUN apt-get update && \ apt-get install -y software-properties-common curl git && \ add-apt-repository ppa:deadsnakes/ppa && \ @@ -10,16 +10,27 @@ RUN apt-get update && \ ln -sf python3.10 /usr/bin/python3 && \ apt-get clean && rm -rf /var/lib/apt/lists/* +# 设置工作目录 WORKDIR /app -# 拷贝源码(包含 requirements/ 子目录) +# 拷贝源码(包含 requirements 子目录) COPY evalscope.0.17.0/ ./evalscope -# 安装 pip 和依赖 +# 升级 pip 工具 RUN pip install --upgrade pip setuptools wheel -# ✅ 按照子目录中的真实依赖安装(不使用项目根目录那个错误格式的 requirements.txt) -RUN pip install -r ./evalscope/requirements/framework.txt && \ +# ✅ 安装所有模块依赖 +RUN pip install \ + -r ./evalscope/requirements/framework.txt \ + -r ./evalscope/requirements/opencompass.txt \ + -r ./evalscope/requirements/vlmeval.txt \ + -r ./evalscope/requirements/aigc.txt \ + -r ./evalscope/requirements/app.txt \ + -r ./evalscope/requirements/dev.txt \ + -r ./evalscope/requirements/docs.txt \ + -r ./evalscope/requirements/perf.txt \ + -r ./evalscope/requirements/rag.txt && \ pip install -e ./evalscope +# 启动后输出 evalscope 总 help ENTRYPOINT ["evalscope", "--help"]