Skip to content

Commit 877a99b

Browse files
committed
fix(docker): correct CUDA installation steps in backend Dockerfiles
Signed-off-by: Alessandro Sturniolo <[email protected]>
1 parent 8faa1b3 commit 877a99b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

backend/Dockerfile.golang

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,14 @@ RUN <<EOT bash
7575
apt-get install -y --no-install-recommends \
7676
software-properties-common pciutils
7777
if [ "amd64" = "$TARGETARCH" ]; then
78-
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
78+
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/x86_64/cuda-keyring_1.1-1_all.deb
7979
fi
8080
if [ "arm64" = "$TARGETARCH" ]; then
81-
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/arm64/cuda-keyring_1.1-1_all.deb
81+
if [ "${CUDA_MAJOR_VERSION}" = "13" ]; then
82+
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/sbsa/cuda-keyring_1.1-1_all.deb
83+
else
84+
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/arm64/cuda-keyring_1.1-1_all.deb
85+
fi
8286
fi
8387
dpkg -i cuda-keyring_1.1-1_all.deb && \
8488
rm -f cuda-keyring_1.1-1_all.deb && \

backend/Dockerfile.llama-cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ RUN <<EOT bash
124124
apt-get install -y --no-install-recommends \
125125
software-properties-common pciutils
126126
if [ "amd64" = "$TARGETARCH" ]; then
127+
echo https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/x86_64/cuda-keyring_1.1-1_all.deb
127128
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_VERSION}/x86_64/cuda-keyring_1.1-1_all.deb
128129
fi
129130
if [ "arm64" = "$TARGETARCH" ]; then

0 commit comments

Comments
 (0)