Skip to content

Commit 95f002b

Browse files
feat: use rootless base image for nb-controller and pod-default (kubeflow/kubeflow#7686)
Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
1 parent 579d3eb commit 95f002b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/notebook-controller/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -mod=mod -o manager main
2626

2727
# Use distroless as minimal base image to package the manager binary
2828
# Refer to https://github.com/GoogleContainerTools/distroless for more details
29-
FROM gcr.io/distroless/base:debug
29+
FROM gcr.io/distroless/static:nonroot
30+
3031
WORKDIR /
3132
COPY --from=builder /workspace/notebook-controller/manager .
3233
COPY --from=builder /workspace/notebook-controller/third_party/license.txt third_party/license.txt
3334
COPY --from=builder /go/pkg/mod/github.com/hashicorp third_party/hashicorp
35+
36+
USER 65532:65532
37+
3438
ENTRYPOINT ["/manager"]

0 commit comments

Comments
 (0)