This commit is contained in:
hailin 2025-07-08 08:37:04 +08:00
parent b28fa50bb1
commit 51cbd42637
1 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,8 @@
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,15 +11,18 @@ RUN apt-get update && \
ln -sf python3.10 /usr/bin/python3 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# 设置工作目录
WORKDIR /app
# 拷贝源码
# 拷贝 evalscope 源码
COPY evalscope.0.17.0/ ./evalscope
# 安装源码与全部依赖
RUN pip install --upgrade pip setuptools wheel && \
pip install -e 'evalscope[all]' ./evalscope
# 安装 pip 最新版本(如果你不愿升级可去掉)
RUN pip install --upgrade pip setuptools wheel
# 启动容器即打印总 help 页面
# 按官方 requirements 安装依赖,再装本地包
RUN pip install -r ./evalscope/requirements.txt && \
pip install -e ./evalscope
# 默认执行 help
ENTRYPOINT ["evalscope", "--help"]