omarsol commited on
Commit
f5cdb39
Β·
1 Parent(s): a7e3f99

Update Dockerfile to install uv in a global bin directory and adjust PATH accordingly

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -5,10 +5,9 @@ FROM python:3.13-slim
5
  RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
- # Install uv (installs to /root/.local/bin by default)
9
- RUN curl -LsSf https://astral.sh/uv/install.sh | sh
10
- # Make sure uv is on PATH for all later steps
11
- ENV PATH="/root/.local/bin:${PATH}"
12
 
13
  # Create the HF-required user (UID 1000) before copying files
14
  RUN useradd -m -u 1000 user
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
+ # Install uv to a global bin dir
9
+ RUN curl -LsSf https://astral.sh/uv/install.sh | sh -s -- --bin-dir /usr/local/bin
10
+ ENV PATH="/usr/local/bin:${PATH}"
 
11
 
12
  # Create the HF-required user (UID 1000) before copying files
13
  RUN useradd -m -u 1000 user