Skip to content

Commit

Permalink
replaced scratch with static distroless (Azure#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiveerk authored Feb 7, 2024
1 parent e32690c commit 1cf0067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cf0067

Please sign in to comment.