This commit is contained in:
hailin 2025-07-08 08:41:04 +08:00
parent 51cbd42637
commit f8d6d213f8
1 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,4 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# 安装 Python 3.10
@ -11,18 +10,17 @@ RUN apt-get update && \
ln -sf python3.10 /usr/bin/python3 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# 设置工作目录
WORKDIR /app
# 拷贝 evalscope 源码
# 👇 关键:重新明确 COPY确保 requirements 子目录也被打包
COPY evalscope.0.17.0/ ./evalscope
# 安装 pip 最新版本(如果你不愿升级可去掉)
# 升级 pip
RUN pip install --upgrade pip setuptools wheel
# 按官方 requirements 安装依赖,再装本地包
RUN pip install -r ./evalscope/requirements.txt && \
pip install -e ./evalscope
# 👇 用原始 requirements.txt 安装依赖,保持原样结构
RUN cd evalscope && \
pip install -r requirements.txt && \
pip install -e .
# 默认执行 help
ENTRYPOINT ["evalscope", "--help"]