We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b20916 + 60463d8 commit 4d6bce1Copy full SHA for 4d6bce1
Dockerfile
@@ -28,7 +28,16 @@ ARG CUDA_IMAGE=cuda
28
ARG CUDA_VERSION=12.2.2
29
ARG BASE_DIST=ubi8
30
31
-FROM golang:1.20 AS builder
+FROM nvcr.io/nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST} as builder
32
+
33
+RUN yum install -y wget make gcc
34
35
+ARG GOLANG_VERSION=1.20.4
36
+RUN wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz \
37
+ | tar -C /usr/local -xz
38
39
+ENV GOPATH /go
40
+ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
41
42
ENV GOOS=linux\
43
GOARCH=amd64
@@ -59,4 +68,3 @@ COPY --from=builder /go/src/kubevirt-gpu-device-plugin/utils/pci.ids /usr/pci.id
59
68
RUN yum update -y
60
69
61
70
CMD ["nvidia-kubevirt-gpu-device-plugin"]
62
-
0 commit comments