Skip to content

Commit

Permalink
Merge pull request #257 from zzxwill/dockerfile
Browse files Browse the repository at this point in the history
Upgrade go version to 1.17 in Dockerfile
  • Loading branch information
zzxwill authored Mar 9, 2022
2 parents 10ac87d + bacb79d commit 3df9d72
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 3df9d72

Please sign in to comment.