shamik commited on
Commit
98913fb
·
unverified ·
1 Parent(s): 6bda5c1

feat: updated uv installation in docker.

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -22,7 +22,15 @@ ENV HF_HOME=/tmp/cache/
22
  RUN mkdir db
23
 
24
  # RUN pip install --no-cache-dir -r requirements.txt
25
- RUN pip install uv
 
 
 
 
 
 
 
 
26
  RUN uv sync
27
 
28
  RUN uv run huggingface-cli download Shamik/arxiv_cs_2020_07_2025 --repo-type dataset --local-dir ./db
 
22
  RUN mkdir db
23
 
24
  # RUN pip install --no-cache-dir -r requirements.txt
25
+ # Download the latest installer
26
+ ADD https://astral.sh/uv/install.sh /uv-installer.sh
27
+
28
+ # Run the installer then remove it
29
+ RUN sh /uv-installer.sh && rm /uv-installer.sh
30
+
31
+ # Ensure the installed binary is on the `PATH`
32
+ ENV PATH="/root/.local/bin/:$PATH"
33
+
34
  RUN uv sync
35
 
36
  RUN uv run huggingface-cli download Shamik/arxiv_cs_2020_07_2025 --repo-type dataset --local-dir ./db