-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade go to 1.18 to resolve security vulnerability CVE-2022-27191 (#…
…115)
- Loading branch information
Showing
4 changed files
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM golang:1.13 AS build | ||
FROM golang:1.18 AS build | ||
ENV PROJECT grpc_health_probe | ||
WORKDIR /src/$PROJECT | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY . . | ||
RUN CGO_ENABLED=0 go install -a -tags netgo -ldflags=-w | ||
|
||
FROM alpine:3.8 | ||
FROM alpine:3 | ||
COPY --from=build /go/bin/grpc-health-probe /bin/grpc_health_probe | ||
ENTRYPOINT [ "/bin/grpc_health_probe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ require ( | |
google.golang.org/protobuf v1.28.0 // indirect | ||
) | ||
|
||
go 1.17 | ||
go 1.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters