From 9d43848925a7f3cea88e90b77071c9de32ff4a18 Mon Sep 17 00:00:00 2001 From: Mengqi Yu Date: Wed, 15 May 2019 14:02:48 -0700 Subject: [PATCH] use distroless/static --- pkg/scaffold/v2/dockerfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scaffold/v2/dockerfile.go b/pkg/scaffold/v2/dockerfile.go index 4e113701db7..3651d3bebbe 100644 --- a/pkg/scaffold/v2/dockerfile.go +++ b/pkg/scaffold/v2/dockerfile.go @@ -54,7 +54,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 gcr.io/distroless/base +FROM gcr.io/distroless/static:latest WORKDIR / COPY --from=builder /workspace/manager . ENTRYPOINT ["/manager"]