This commit is contained in:
parent
4c364243c2
commit
a200a614da
21
Dockerfile
21
Dockerfile
|
|
@ -1,7 +1,7 @@
|
||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# 安装 Python 3.10
|
# 安装 Python 3.10 和基础工具
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y software-properties-common curl git && \
|
apt-get install -y software-properties-common curl git && \
|
||||||
add-apt-repository ppa:deadsnakes/ppa && \
|
add-apt-repository ppa:deadsnakes/ppa && \
|
||||||
|
|
@ -10,16 +10,27 @@ 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
|
||||||
|
|
||||||
# 拷贝源码(包含 requirements/ 子目录)
|
# 拷贝源码(包含 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.txt)
|
# ✅ 安装所有模块依赖
|
||||||
RUN pip install -r ./evalscope/requirements/framework.txt && \
|
RUN pip install \
|
||||||
|
-r ./evalscope/requirements/framework.txt \
|
||||||
|
-r ./evalscope/requirements/opencompass.txt \
|
||||||
|
-r ./evalscope/requirements/vlmeval.txt \
|
||||||
|
-r ./evalscope/requirements/aigc.txt \
|
||||||
|
-r ./evalscope/requirements/app.txt \
|
||||||
|
-r ./evalscope/requirements/dev.txt \
|
||||||
|
-r ./evalscope/requirements/docs.txt \
|
||||||
|
-r ./evalscope/requirements/perf.txt \
|
||||||
|
-r ./evalscope/requirements/rag.txt && \
|
||||||
pip install -e ./evalscope
|
pip install -e ./evalscope
|
||||||
|
|
||||||
|
# 启动后输出 evalscope 总 help
|
||||||
ENTRYPOINT ["evalscope", "--help"]
|
ENTRYPOINT ["evalscope", "--help"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue