From 1cf006721102e9d96d54f61c411776e0df921c6d Mon Sep 17 00:00:00 2001 From: Jaiveer Katariya <35347859+jaiveerk@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:28:44 -0500 Subject: [PATCH] replaced scratch with static distroless (#164) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 808980e5..93d3f85b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /go/src/github.com/Azure/aks-app-routing-operator ADD . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -a -ldflags '-extldflags "-static"' -o aks-app-routing-operator -FROM scratch +FROM gcr.io/distroless/static:nonroot WORKDIR / COPY --from=builder /go/src/github.com/Azure/aks-app-routing-operator/aks-app-routing-operator . COPY --from=builder /go/src/github.com/Azure/aks-app-routing-operator/config/crd/bases ./crd