Skip to content

Commit 412dd16

Browse files
committed
Update Dockerfile to install uv using official installer and adjust PATH
- Changed the installation method of uv from pip to an official installer for improved reliability. - Updated the PATH environment variable to include the directory for the installed binary.
1 parent b5d9c3f commit 412dd16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ RUN add-apt-repository ppa:deadsnakes/ppa \
4141
&& apt-get install -y python3.12 python3.12-venv python3.12-dev \
4242
&& rm -rf /var/lib/apt/lists/*
4343

44-
# Install uv using pip and add to PATH
45-
RUN python3.12 -m pip install uv
46-
ENV PATH="/root/.local/bin:$PATH"
44+
# Install uv using official installer
45+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
46+
ENV PATH="/root/.cargo/bin:$PATH"
4747

4848
# Create working directory
4949
RUN mkdir -p /root/src

0 commit comments

Comments
 (0)