Update Dockerfile to use uv

#173
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,16 +1,21 @@
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
11
  WORKDIR /mteb
12
 
13
- RUN pip install ".[leaderboard]"
 
 
14
  # ENV XDG_CACHE_HOME=/home/user/.cache
15
  ENV GRADIO_SERVER_NAME="0.0.0.0"
16
  EXPOSE 7860
 
1
  FROM python:3.12-bookworm
2
 
3
+ RUN apt update && apt install -y git make curl
4
  RUN useradd -m -u 1000 user
5
  ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
+ # Install uv
8
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
9
+
10
  RUN git clone https://github.com/embeddings-benchmark/mteb.git
11
  RUN chown -R user:user /mteb
12
 
13
  USER user
14
  WORKDIR /mteb
15
 
16
+ # Use uv to install dependencies with leaderboard extras
17
+ RUN uv sync --extra leaderboard
18
+
19
  # ENV XDG_CACHE_HOME=/home/user/.cache
20
  ENV GRADIO_SERVER_NAME="0.0.0.0"
21
  EXPOSE 7860