Regarding #1, most of the images already have user nobody or something like that so it is enough to do:
USER 65534:65534
just before the ENTRYPOINT and/or CMD. Checkout /etc/passwd in the image for the UID and GID of an appropriate user account present in the image.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We’re an inclusive community for sharing DevOps and SecOps tips & tricks, tutorials, and career insights.
Regarding #1, most of the images already have user nobody or something like that so it is enough to do:
USER 65534:65534
just before the ENTRYPOINT and/or CMD. Checkout /etc/passwd in the image for the UID and GID of an appropriate user account present in the image.