From c325f4f2002fdfe994f395e33ea53ccecf8f9022 Mon Sep 17 00:00:00 2001 From: avouacr Date: Sun, 20 Sep 2026 08:37:56 +0000 Subject: [PATCH 1/2] upgrade cuda --- versions.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions.env b/versions.env index 02b0b58d..f9183c77 100644 --- a/versions.env +++ b/versions.env @@ -3,7 +3,7 @@ # Updated by Renovate, which also keeps the ARG defaults of the Dockerfiles in sync. BASE_IMAGE_CPU="ubuntu:24.04" -BASE_IMAGE_GPU="nvidia/cuda:12.6.3-cudnn-devel-ubuntu24.04" +BASE_IMAGE_GPU="nvidia/cuda:13.2.1-cudnn-devel-ubuntu24.04" PYTHON_VERSION_1="3.14.7" PYTHON_VERSION_2="3.13.15" From 4b89e28b762dd80f74130bbba9592a449758d449 Mon Sep 17 00:00:00 2001 From: avouacr Date: Sun, 20 Sep 2026 14:03:12 +0000 Subject: [PATCH 2/2] fix index-url for pytorch according to cuda version --- .hadolint.yaml | 1 + python-pytorch/Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.hadolint.yaml b/.hadolint.yaml index 5c9000f9..30ec7936 100644 --- a/.hadolint.yaml +++ b/.hadolint.yaml @@ -4,4 +4,5 @@ ignored: # which hadolint cannot see when linting a child Dockerfile - DL3045 # COPY to a relative destination without WORKDIR set - SC3010 # [[ ]] undefined in POSIX sh (RUN uses bash) + - SC3011 # here-strings undefined in POSIX sh (RUN uses bash) - DL3066 # Non-numeric user id (USER root) diff --git a/python-pytorch/Dockerfile b/python-pytorch/Dockerfile index 61f9042e..177df0d7 100644 --- a/python-pytorch/Dockerfile +++ b/python-pytorch/Dockerfile @@ -7,7 +7,8 @@ USER root RUN if ! [[ -z "${CUDA_VERSION}" ]]; then \ # CUDA support - uv pip install --system --no-cache torch torchvision torchaudio; \ + CUDA_MAJOR_MINOR=$(awk -F. '{print $1 $2}' <<< "$CUDA_VERSION") && \ + uv pip install --system --no-cache torch torchvision torchaudio --index-url "https://download.pytorch.org/whl/cu${CUDA_MAJOR_MINOR}"; \ else \ # CPU only uv pip install --system --no-cache torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu; \