Skip to content

Commit

Permalink
Upgrade go version to 1.17 in Dockerfile
Browse files Browse the repository at this point in the history
Upgrade go version in Dockerfile

Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
  • Loading branch information
zzxwill committed Mar 1, 2022
1 parent 97b3f99 commit bacb79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.16 as builder
FROM golang:1.17 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -19,7 +19,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM golang:1.16
FROM golang:1.17
WORKDIR /
COPY --from=builder /workspace/manager .
#USER nonroot:nonroot
Expand Down

0 comments on commit bacb79d

Please sign in to comment.