How do I add a user when I’m using Alpine as a base image?

I’m using alpine (or an image that is based on Alpine) as the base image in my Dockerfile. Which instructions do I need to add to create a user?

Eventually I’ll use this user to run the application I’ll place into the container so that the root user does not.

3 Answers
3

Leave a Comment