Skip to content

Conversation

@ElMassas
Copy link

Distroless images have 3 users by default as far as I am aware:

docker run --rm --entrypoint cat gcr.io/distroless/static-debian12:debug /etc/passwd                               
root:x:0:0:root:/root:/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/sbin/nologin
nonroot:x:65532:65532:nonroot:/home/nonroot:/sbin/nologin

To make sure the user isn't ROOT you can either choose nonroot/nobody or create your own specific user.

EXPOSE 3100

COPY --from=builder /tmp/lokxy /usr/local/bin/lokxy
USER lokxyuser
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please set it as nobody?

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants