Spaces:
Running
Running
Commit
·
f317198
1
Parent(s):
e5b450a
add - tab
Browse files- Dockerfile +11 -5
Dockerfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
FROM python:3.12-bookworm
|
2 |
|
3 |
-
RUN apt update && apt install -y git make
|
|
|
4 |
RUN useradd -m -u 1000 user
|
5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
6 |
|
7 |
-
RUN git clone -b
|
|
|
8 |
RUN chown -R user:user /mteb
|
9 |
|
10 |
USER user
|
@@ -12,8 +14,12 @@ WORKDIR /mteb
|
|
12 |
|
13 |
RUN pip install "pydantic<2.11"
|
14 |
RUN pip install ".[leaderboard]"
|
15 |
-
|
16 |
-
|
|
|
17 |
EXPOSE 7860
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
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 -b multi_tab https://github.com/q275343119/mteb.git
|
9 |
+
|
10 |
RUN chown -R user:user /mteb
|
11 |
|
12 |
USER user
|
|
|
14 |
|
15 |
RUN pip install "pydantic<2.11"
|
16 |
RUN pip install ".[leaderboard]"
|
17 |
+
|
18 |
+
|
19 |
+
# 开放容器端口
|
20 |
EXPOSE 7860
|
21 |
|
22 |
+
# 启动脚本需要可执行权限
|
23 |
+
RUN chmod +x /mteb/mteb/leaderboard/entrypoint.sh
|
24 |
+
|
25 |
+
ENTRYPOINT ["/mteb/mteb/leaderboard/entrypoint.sh"]
|