This post is a combination of my earlier posts:
- Dockerfile - Renaming Existing User From Base Docker Image
- Dockerfile - Replacing Bash With Zsh Prompt In Docker Container
So when you have the need for both the above, you can pick the reference Dockerfile below as template and build upon it:
--
--