FROM python:3.12-bookworm RUN apt update && apt install -y git make RUN useradd -m -u 1000 user ENV PATH="/home/user/.local/bin:$PATH" RUN git clone -b multi_sidebar https://github.com/q275343119/mteb.git RUN chown -R user:user /mteb USER user WORKDIR /mteb RUN pip install "pydantic<2.11" RUN pip install ".[leaderboard]" # ENV XDG_CACHE_HOME=/home/user/.cache ENV GRADIO_SERVER_NAME="0.0.0.0" EXPOSE 8080 # 添加可执行权限(如果没在构建前处理) RUN chmod +x entrypoint.sh # 设置 entrypoint 启动脚本 ENTRYPOINT ["./entrypoint.sh"] # CMD 是传给 entrypoint.sh 的参数($@) CMD ["python", "-m", "mteb.leaderboard.multi_app"]