Update Dockerfile to install uv in a global bin directory and adjust PATH accordingly
Browse files- 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
|
9 |
-
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
10 |
-
|
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
|