File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1414
1515ARG GOLANG_VERSION=1.23.8
1616# We use an ubuntu20.04 base image to allow for a more efficient multi-arch builds.
17- FROM --platform=${BUILDOS}/amd64 nvcr.io/nvidia/cuda:12.8.1-base-ubuntu20.04 AS build
17+ FROM nvcr.io/nvidia/cuda:12.8.1-base-ubuntu20.04 AS build
1818
1919RUN apt-get update && \
2020 apt-get install -y wget make git gcc-aarch64-linux-gnu gcc \
2121 && \
2222 rm -rf /var/lib/apt/lists/*
2323
2424ARG GOLANG_VERSION=x.x.x
25- RUN wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz \
25+
26+ RUN set -eux; \
27+ \
28+ arch="$(uname -m)" ; \
29+ case "${arch##*-}" in \
30+ x86_64 | amd64) ARCH='amd64' ;; \
31+ ppc64el | ppc64le) ARCH='ppc64le' ;; \
32+ aarch64) ARCH='arm64' ;; \
33+ *) echo "unsupported architecture" ; exit 1 ;; \
34+ esac; \
35+ wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
2636 | tar -C /usr/local -xz
2737
2838ENV GOPATH /go
@@ -59,8 +69,8 @@ LABEL com.nvidia.git-commit="${GIT_COMMIT}"
5969LABEL release="N/A"
6070LABEL summary="NVIDIA DRA Driver for GPUs"
6171LABEL description="NVIDIA DRA Driver for GPUs"
62- LABEL org.opencontainers.image.description "NVIDIA DRA Driver for GPUs"
63- LABEL org.opencontainers.image.source "https://github.com/NVIDIA/k8s-dra-driver-gpu"
72+ LABEL org.opencontainers.image.description= "NVIDIA DRA Driver for GPUs"
73+ LABEL org.opencontainers.image.source= "https://github.com/NVIDIA/k8s-dra-driver-gpu"
6474
6575RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
6676
You can’t perform that action at this time.
0 commit comments