diff --git a/Dockerfile b/Dockerfile index a2f0ef59..2cd928b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20.7-alpine3.18@sha256:7efb78dac256c450d194e556e96f80936528335033a26d703ec8146cec8c2090 AS build +FROM golang:1.21.5-alpine3.18@sha256:5c1cabd9a3c6851a3e18735a2c133fbd8f67fe37eb3203318b7af2ffd2547095 AS build WORKDIR /usr/src/app RUN apk --no-cache add git make COPY ./go.mod ./go.sum ./ @@ -6,7 +6,7 @@ RUN go mod download COPY . . RUN make install -FROM golang:1.20.7-alpine3.18@sha256:7efb78dac256c450d194e556e96f80936528335033a26d703ec8146cec8c2090 +FROM golang:1.21.5-alpine3.18@sha256:5c1cabd9a3c6851a3e18735a2c133fbd8f67fe37eb3203318b7af2ffd2547095 # When running as non-root user, GOCACHE must be set to a directory # that is writable by that user. It will otherwise default to /.cache/go-build, # which is owned by root. diff --git a/Dockerfile.examples b/Dockerfile.examples index 5bcc076d..77629dab 100644 --- a/Dockerfile.examples +++ b/Dockerfile.examples @@ -1,6 +1,6 @@ # This Dockerfile is meant for generating example SBOMs in a way # that is reproducible for everyone. -FROM golang:1.20.7-alpine3.18@sha256:7efb78dac256c450d194e556e96f80936528335033a26d703ec8146cec8c2090 AS build +FROM golang:1.21.5-alpine3.18@sha256:5c1cabd9a3c6851a3e18735a2c133fbd8f67fe37eb3203318b7af2ffd2547095 AS build WORKDIR /usr/src/app RUN apk --no-cache add git make COPY ./go.mod ./go.sum ./ @@ -8,7 +8,7 @@ RUN go mod download COPY . . RUN make install -FROM golang:1.20.7-alpine3.18@sha256:7efb78dac256c450d194e556e96f80936528335033a26d703ec8146cec8c2090 +FROM golang:1.21.5-alpine3.18@sha256:5c1cabd9a3c6851a3e18735a2c133fbd8f67fe37eb3203318b7af2ffd2547095 VOLUME /examples # Install prerequisites diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index 49198d41..84ca7e86 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -1,6 +1,6 @@ # This Dockerfile is meant for GoReleaser exclusively, see .goreleaser.yml. # For manual builds, please use the regular Dockerfile or simply run "make docker". -FROM golang:1.20.7-alpine3.18@sha256:7efb78dac256c450d194e556e96f80936528335033a26d703ec8146cec8c2090 +FROM golang:1.21.5-alpine3.18@sha256:5c1cabd9a3c6851a3e18735a2c133fbd8f67fe37eb3203318b7af2ffd2547095 # When running as non-root user, GOCACHE must be set to a directory # that is writable by that user. It will otherwise default to /.cache/go-build, # which is owned by root.