Skip to content

Commit 775b8ac

Browse files
committed
Suggest using Chainguard images
Signed-off-by: Antonette Caldwell <[email protected]>
1 parent 3384958 commit 775b8ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.19 as builder
2+
FROM cgr.dev/chainguard/go:latest as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests
@@ -18,9 +18,8 @@ COPY pkg/ pkg/
1818
# Build
1919
RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o manager main.go
2020

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
21+
# Instead of using distroless, use Chainguard images
22+
FROM cgr.dev/chainguard/static:latest
2423
WORKDIR /
2524
COPY --from=builder /workspace/manager .
2625
USER nonroot:nonroot

0 commit comments

Comments
 (0)