From ce889f6f90a83e8c0988d23ca8c68cd82dab08c5 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 12 Nov 2024 18:26:53 +0000 Subject: [PATCH] fix: tools/code-generator/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133 - https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133 - https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133 - https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133 - https://snyk.io/vuln/SNYK-DEBIAN11-NGHTTP2-5953384 --- tools/code-generator/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/code-generator/Dockerfile b/tools/code-generator/Dockerfile index 21e4097..49c95ef 100644 --- a/tools/code-generator/Dockerfile +++ b/tools/code-generator/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19.7 +FROM golang:1.22.9 RUN apt-get update && apt-get install -y unzip ENV GO111MODULE on RUN git clone https://github.com/kubernetes/code-generator.git /go/src/k8s.io/code-generator \ @@ -18,7 +18,7 @@ RUN PROTOBUF_VERSION=3.14.0; ZIPNAME="protoc-${PROTOBUF_VERSION}-linux-x86_64.zi && rm -rf /tmp/protoc \ && protoc --version -FROM golang:1.19.7 +FROM golang:1.22.9 COPY --from=0 /go/src/k8s.io/code-generator /go/src/k8s.io/code-generator COPY --from=0 /go/bin/ /go/bin COPY --from=0 /usr/local/bin /usr/local/bin