File size: 857 Bytes
4f52154
 
ae8a5a1
4f52154
 
 
435f419
 
 
 
f8de698
4f52154
ae8a5a1
435f419
4f52154
ffea178
435f419
 
5324ec1
435f419
ae8a5a1
 
4f52154
ae8a5a1
330b86d
 
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
27
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 https://github.com/embeddings-benchmark/mteb.git
# RUN chown -R user:user /mteb

# RUN git clone -b share_bencmark_link https://github.com/embeddings-benchmark/mteb.git
# RUN chown -R user:user /mteb

USER user
WORKDIR /home/user

RUN pip install "pydantic<2.11"
# RUN pip install "git+https://github.com/ayush1298/mteb@share_bencmark_link[leaderboard]"
RUN pip install "mteb[leaderboard] @ git+https://github.com/ayush1298/mteb@share_bencmark_link"
# RUN pip install cachetools gradio gradio_rangeslider
# RUN pip install ".[leaderboard]"
# ENV XDG_CACHE_HOME=/home/user/.cache
ENV GRADIO_SERVER_NAME="0.0.0.0"
EXPOSE 7860

# CMD ["make", "run-leaderboard"]
CMD ["python", "-m", "mteb.leaderboard.app"]