Skip to content

Commit

Permalink
fix: tools/code-generator/Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Aug 15, 2024
1 parent f3f1ec7 commit fe6c756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/code-generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19.7
FROM golang:1.23
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 \
Expand All @@ -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.23
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
Expand Down

0 comments on commit fe6c756

Please sign in to comment.