q275343119 commited on
Commit
4743a9c
·
1 Parent(s): 2d78809
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-bookworm
2
+
3
+ RUN apt update && apt install -y git make nginx
4
+
5
+ RUN useradd -m -u 1000 user
6
+ ENV PATH="/home/user/.local/bin:$PATH"
7
+
8
+ RUN git clone https://github.com/embeddings-benchmark/mteb.git
9
+
10
+ RUN chown -R user:user /mteb
11
+
12
+ USER user
13
+ WORKDIR /mteb
14
+
15
+ RUN pip install "pydantic<2.11"
16
+ RUN pip install ".[leaderboard]"
17
+
18
+ # ENV XDG_CACHE_HOME=/home/user/.cache
19
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
20
+ EXPOSE 7860
21
+
22
+ CMD ["python", "-m", "mteb.leaderboard.app", "--show_rteb"]