This commit is contained in:
parent
f8d6d213f8
commit
4c364243c2
11
Dockerfile
11
Dockerfile
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue