Got your point, and this is a nice solution. But another (not uncommon approach) is to understand the docker container itself as the application.
30 karma · joined December 13, 2017
You are right regarding inheritors. Creating a docker-hub image has differnent requirements than creating images for your private environment.
1.) It bundles a lot of useful functions (https://bit.ly/2N9mAEu) in the "kit": Have a look at this gist: https://bit.ly/2Nby0HZ - Four lines to create a container with two users (foo and root) including their own python packages installed in their home directories (PIP_USER=1).
2.) It's very easy to expand the kit and the plan/artefact concept helps to structure and reuse code (https://bit.ly/2BEIcnH) stored on your local disk or in repositories.