Skip to content

Commit

Permalink
Non-root user should be specified in numeric form in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedwaleedmalik authored May 6, 2021
1 parent ae0733c commit e7d7dcf
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 @@ -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"]

0 comments on commit e7d7dcf

Please sign in to comment.