e.g. nix: http://lethalman.blogspot.com/2016/04/cheap-docker-images-wi... or jib: https://github.com/GoogleContainerTools/jib
These may not fit every use case, but they can minimize the size of the image by making really precisely defined containers.
https://phauer.com/2019/no-fat-jar-in-docker-image/
e.g. nix: http://lethalman.blogspot.com/2016/04/cheap-docker-images-wi... or jib: https://github.com/GoogleContainerTools/jib
These may not fit every use case, but they can minimize the size of the image by making really precisely defined containers.