evalscope_v0.17.0/Dockerfile

27 lines
787 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
# 👇 关键:重新明确 COPY确保 requirements 子目录也被打包
COPY evalscope.0.17.0/ ./evalscope
# 升级 pip
RUN pip install --upgrade pip setuptools wheel
# 👇 用原始 requirements.txt 安装依赖,保持原样结构
RUN cd evalscope && \
pip install -r requirements.txt && \
pip install -e .
ENTRYPOINT ["evalscope", "--help"]