We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3384958 commit 775b8acCopy full SHA for 775b8ac
Dockerfile
@@ -1,5 +1,5 @@
1
# Build the manager binary
2
-FROM golang:1.19 as builder
+FROM cgr.dev/chainguard/go:latest as builder
3
4
WORKDIR /workspace
5
# Copy the Go Modules manifests
@@ -18,9 +18,8 @@ COPY pkg/ pkg/
18
# Build
19
RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o manager main.go
20
21
-# Use distroless as minimal base image to package the manager binary
22
-# Refer to https://github.com/GoogleContainerTools/distroless for more details
23
-FROM gcr.io/distroless/static:nonroot
+# Instead of using distroless, use Chainguard images
+FROM cgr.dev/chainguard/static:latest
24
WORKDIR /
25
COPY --from=builder /workspace/manager .
26
USER nonroot:nonroot
0 commit comments