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