File size: 510 Bytes
4f52154
 
5c3be66
 
4f52154
 
 
ee1c211
 
ae8a5a1
4f52154
ae8a5a1
4f52154
 
ffea178
ae8a5a1
f0895bc
 
5c3be66
 
f0895bc
5c3be66
945ebc7
2d654bc
945ebc7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.12-bookworm

RUN apt update && apt install -y git make nginx

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]"


# 开放容器端口
EXPOSE 7860

# 启动脚本需要可执行权限
RUN chmod +x /mteb/mteb/leaderboard/entrypoint.sh

ENTRYPOINT ["/mteb/mteb/leaderboard/entrypoint.sh"]