This commit is contained in:
hailin 2025-07-08 08:42:53 +08:00
parent f8d6d213f8
commit 4c364243c2
1 changed files with 5 additions and 6 deletions

View File

@ -12,15 +12,14 @@ RUN apt-get update && \
WORKDIR /app
# 👇 关键:重新明确 COPY确保 requirements 子目录也被打包
# 拷贝源码(包含 requirements/ 子目录)
COPY evalscope.0.17.0/ ./evalscope
# 升级 pip
# 安装 pip 和依赖
RUN pip install --upgrade pip setuptools wheel
# 👇 用原始 requirements.txt 安装依赖,保持原样结构
RUN cd evalscope && \
pip install -r requirements.txt && \
pip install -e .
# ✅ 按照子目录中的真实依赖安装(不使用项目根目录那个错误格式的 requirements.txt
RUN pip install -r ./evalscope/requirements/framework.txt && \
pip install -e ./evalscope
ENTRYPOINT ["evalscope", "--help"]