From 58aabe7dd8561f4435fc2d797cfb756bfe2ce33c Mon Sep 17 00:00:00 2001 From: Daniel Kleine <53251018+d-kleine@users.noreply.github.com> Date: Tue, 18 Feb 2025 21:53:19 +0100 Subject: [PATCH] added `uv` to Dockerfile (#537) * added uv to Dockerfile * Update Dockerfile --------- Co-authored-by: Sebastian Raschka --- .../.devcontainer/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup/03_optional-docker-environment/.devcontainer/Dockerfile b/setup/03_optional-docker-environment/.devcontainer/Dockerfile index 7919433..3e386d7 100644 --- a/setup/03_optional-docker-environment/.devcontainer/Dockerfile +++ b/setup/03_optional-docker-environment/.devcontainer/Dockerfile @@ -4,12 +4,14 @@ FROM pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime # Install Ubuntu packages RUN apt-get update && \ apt-get upgrade -y && \ - apt-get install -y rsync && \ - apt-get install -y git && \ - apt-get install -y curl && \ + apt-get install -y rsync git curl ca-certificates && \ rm -rf /var/lib/apt/lists/* +# Install uv +ADD https://astral.sh/uv/install.sh /uv-installer.sh +RUN sh /uv-installer.sh && rm /uv-installer.sh +ENV PATH="/root/.local/bin/:$PATH" + # Install Python packages COPY requirements.txt requirements.txt -RUN pip install --upgrade pip -RUN pip install --no-cache-dir -r requirements.txt +RUN uv pip install --system --no-cache -r requirements.txt