Skip to content

Commit 4d6bce1

Browse files
authored
Merge pull request #82 from shivamerla/fix_glibc_mismatch
Fix errors due to mismatch of GLIBC version caused from Go 1.20+
2 parents 1b20916 + 60463d8 commit 4d6bce1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ ARG CUDA_IMAGE=cuda
2828
ARG CUDA_VERSION=12.2.2
2929
ARG BASE_DIST=ubi8
3030

31-
FROM golang:1.20 AS builder
31+
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
3241

3342
ENV GOOS=linux\
3443
GOARCH=amd64
@@ -59,4 +68,3 @@ COPY --from=builder /go/src/kubevirt-gpu-device-plugin/utils/pci.ids /usr/pci.id
5968
RUN yum update -y
6069

6170
CMD ["nvidia-kubevirt-gpu-device-plugin"]
62-

0 commit comments

Comments
 (0)