From 175f261ef1b4e82ba7b2361d4299d47d3e544546 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 15 Feb 2024 01:56:11 +0000 Subject: [PATCH] fix: scripts/tooling/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN10-CURL-3065760 - https://snyk.io/vuln/SNYK-DEBIAN10-GLIBC-2340923 - https://snyk.io/vuln/SNYK-DEBIAN10-NGHTTP2-5953390 - https://snyk.io/vuln/SNYK-DEBIAN10-SYSTEMD-3339153 - https://snyk.io/vuln/SNYK-DEBIAN10-SYSTEMD-3339153 --- scripts/tooling/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tooling/Dockerfile b/scripts/tooling/Dockerfile index ee23b99df37..7e32ba302a7 100644 --- a/scripts/tooling/Dockerfile +++ b/scripts/tooling/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.14 as builder +FROM golang:1.22 as builder ENV JSONNET_VERSION v0.15.0 # This corresponds to v2.16.0, but needs to be written as commit hash due to golang 1.13 issues @@ -28,7 +28,7 @@ WORKDIR /go/src/github.com/prometheus-operator/prometheus-operator COPY . . RUN GO111MODULE=on make po-lint && chmod +x po-lint && mv po-lint /go/bin/ -FROM golang:1.14 +FROM golang:1.22 RUN apt-get update -y && apt-get install -y make git jq gawk python-yaml && \ rm -rf /var/lib/apt/lists/* COPY --from=builder /usr/local/bin/jsonnetfmt /usr/local/bin/jsonnetfmt