Skip to content

Commit 8ef268c

Browse files
authored
Use numeric uid:gid in Dockerfile to support Tanzu's PSP (#720)
- Fixes issue "Error: container has runAsNonRoot and image has non-numeric user (nonroot), cannot verify user is non-root"
1 parent da3c208 commit 8ef268c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager
2424
FROM gcr.io/distroless/static:nonroot
2525
WORKDIR /
2626
COPY --from=builder /workspace/manager .
27-
USER nonroot:nonroot
27+
USER 65532:65532
2828

2929
ENTRYPOINT ["/manager"]

0 commit comments

Comments
 (0)