This will be the base image of most of my future docker images.
This main image will have only one user: root. All the other default users are
The image will contain a install script in
This script will run
The image will contain a upgrade script in
This script can be used to upgrade all currently installed packages.
The image will contain a user cleanup script
This script will remove all users and groups except for root.
The images using this image as base can just add a
so there is a possibility to create a needed user in the newly built image. Its
necessary to call the
/container/user-setup.sh from your entrypoint script.
container folder will exist in this "base"-image, other images can
easily add their helper scripts in that directory to avoid clutter in the root