diff --git a/Dockerfile b/Dockerfile index e684257b..9abb9b74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.20.10 as builder +FROM golang:1.22.9-bookworm as builder WORKDIR /workspace # Copy the Go Modules manifests @@ -32,7 +32,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH GO111MODULE=on go build \ # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM alpine:3.17 +FROM alpine:3.20 # Upgrade packages for vulnerabilities RUN apk update && apk upgrade diff --git a/Jenkinsfile b/Jenkinsfile index 87e760e5..d6c4ea7f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,7 @@ hose { EMAIL = 'eos@stratio.com' + BUILDTOOL_IMAGE = 'golang:1.22' BUILDTOOL = 'make' DEVTIMEOUT = 30 ANCHORE_POLICY = "production"