@gregw , I understand your idea, but in our case it will not help - we need JDK and also we are happy to have slim version. Might be it makes sense to use ARGs for dynamic original image?
Example:
https://www.jeffgeerling.com/blog/2017/use-arg-dockerfile-dynamic-image-specification
So in sources you can have just few Dockerfiles - but in hub.docker.com specify as many builds - as needed.
@gregw , I understand your idea, but in our case it will not help - we need JDK and also we are happy to have slim version. Might be it makes sense to use ARGs for dynamic original image? Example: https://www.jeffgeerling.com/blog/2017/use-arg-dockerfile-dynamic-image-specification So in sources you can have just few Dockerfiles - but in hub.docker.com specify as many builds - as needed.