Spaces:
Running
Running
Commit
·
5c3be66
1
Parent(s):
1a9c892
add - multi app
Browse files- Dockerfile +5 -22
Dockerfile
CHANGED
@@ -1,6 +1,7 @@
|
|
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 |
|
@@ -13,30 +14,12 @@ WORKDIR /mteb
|
|
13 |
|
14 |
RUN pip install "pydantic<2.11"
|
15 |
RUN pip install ".[leaderboard]"
|
16 |
-
# ENV XDG_CACHE_HOME=/home/user/.cache
|
17 |
-
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
18 |
-
EXPOSE 7860
|
19 |
-
|
20 |
-
|
21 |
-
# 查看 /mteb 目录结构
|
22 |
-
RUN echo "==> /mteb content:" && ls -al /mteb
|
23 |
-
|
24 |
-
# 查看 /mteb/mteb 目录结构
|
25 |
-
RUN echo "==> /mteb/mteb content:" && ls -al /mteb/mteb
|
26 |
|
27 |
-
# 如果你确认 entrypoint.sh 应在 /mteb/mteb/leaderboard/
|
28 |
-
RUN echo "==> /mteb/mteb/leaderboard content:" && ls -al /mteb/mteb/leaderboard
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
RUN echo "pwd:" && pwd
|
33 |
|
34 |
-
#
|
35 |
RUN chmod +x /mteb/mteb/leaderboard/entrypoint.sh
|
36 |
|
37 |
-
# 设置 entrypoint 启动脚本
|
38 |
ENTRYPOINT ["/mteb/mteb/leaderboard/entrypoint.sh"]
|
39 |
-
|
40 |
-
# CMD 是传给 entrypoint.sh 的参数($@)
|
41 |
-
CMD ["python", "-m", "mteb.leaderboard.multi_app"]
|
42 |
-
|
|
|
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 |
|
|
|
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"]
|
|
|
|
|
|
|
|