From 1b7c58ded6b54d89c6e1e70cf29d95bd157c62f0 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 25 May 2024 03:10:37 +0000 Subject: [PATCH] fix: scripts/tooling/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN10-NGHTTP2-5953390 - https://snyk.io/vuln/SNYK-DEBIAN10-SYSTEMD-3339153 - https://snyk.io/vuln/SNYK-DEBIAN10-SYSTEMD-3339153 - https://snyk.io/vuln/SNYK-DEBIAN10-CURL-3065760 - https://snyk.io/vuln/SNYK-DEBIAN10-DPKG-2847944 --- scripts/tooling/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tooling/Dockerfile b/scripts/tooling/Dockerfile index ee23b99df37..e56e24a1608 100644 --- a/scripts/tooling/Dockerfile +++ b/scripts/tooling/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.14 as builder +FROM golang:1.21.10 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.21.10 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