evalscope_v0.17.0/Dockerfile

26 lines
826 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# 安装 Python 3.10
RUN apt-get update && \
apt-get install -y software-properties-common curl git && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get install -y python3.10 python3.10-venv python3.10-dev python3-pip && \
ln -sf python3.10 /usr/bin/python3 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# 拷贝源码(包含 requirements/ 子目录)
COPY evalscope.0.17.0/ ./evalscope
# 安装 pip 和依赖
RUN pip install --upgrade pip setuptools wheel
# ✅ 按照子目录中的真实依赖安装(不使用项目根目录那个错误格式的 requirements.txt
RUN pip install -r ./evalscope/requirements/framework.txt && \
pip install -e ./evalscope
ENTRYPOINT ["evalscope", "--help"]