File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.24 as builder
1+ FROM golang:1.24.0 as builder
22
33ARG GOOS=linux
44ARG GOARCH=amd64
@@ -7,14 +7,15 @@ WORKDIR /usr/src/app/
77
88COPY . .
99
10+ ENV GOTOOLCHAIN=auto
11+
1012RUN echo "Building govulncheckx binary for $GOOS/$GOARCH"
1113RUN GOOS=$GOOS GOARCH=$GOARCH go build -v -o govulncheckx main.go
1214
13- FROM golang:1.24
15+ FROM golang:1.23.0
1416# using a fresh golang image without the `WORKDIR` from the builder stage
1517# see https://docs.github.com/en/actions/reference/workflows-and-actions/dockerfile-support#workdir
16- # using golang 1.24 but the entrypoint will trigger an install of the actual go version,
17- # even if it is 1.23
18+ # using golang 1.23.0 since most of our projects are still using it (and toolchain will not downgrade the version of go)
1819
1920# copy the binary from the builder stage
2021COPY --from=builder /usr/src/app/govulncheckx /usr/local/bin/govulncheckx
You can’t perform that action at this time.
0 commit comments