Spaces:
Running
Running
MUltiApp
#1
by
q275343119
- opened
- Dockerfile +5 -11
Dockerfile
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
FROM python:3.12-bookworm
|
2 |
|
3 |
-
RUN apt update && apt install -y git make
|
4 |
-
|
5 |
RUN useradd -m -u 1000 user
|
6 |
ENV PATH="/home/user/.local/bin:$PATH"
|
7 |
|
8 |
-
RUN git clone
|
9 |
-
|
10 |
RUN chown -R user:user /mteb
|
11 |
|
12 |
USER user
|
@@ -14,12 +12,8 @@ WORKDIR /mteb
|
|
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"]
|
|
|
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 https://github.com/embeddings-benchmark/mteb.git
|
|
|
8 |
RUN chown -R user:user /mteb
|
9 |
|
10 |
USER user
|
|
|
12 |
|
13 |
RUN pip install "pydantic<2.11"
|
14 |
RUN pip install ".[leaderboard]"
|
15 |
+
# ENV XDG_CACHE_HOME=/home/user/.cache
|
16 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
|
|
17 |
EXPOSE 7860
|
18 |
|
19 |
+
CMD ["make", "run-leaderboard"]
|
|
|
|
|
|