From e7d7dcfd8588839a233fc2951da6de2b68bea238 Mon Sep 17 00:00:00 2001 From: Ahmed Waleed Malik Date: Thu, 6 May 2021 10:50:21 +0500 Subject: [PATCH] Non-root user should be specified in numeric form in Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 17ce29a..2604790 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,6 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -mod=mod -a - FROM gcr.io/distroless/static:nonroot WORKDIR / COPY --from=builder /workspace/manager . -USER nonroot:nonroot +USER 65532:65532 ENTRYPOINT ["/manager"]