For the latest version of Adams (2022.1), base it on Rocky Linux 8. (This will be the installation for RedHat 8.4)
I create a 'naked image with only the OS and Adams. Then remove all examples and documentation from the image. It will still be close to 15 GB.
But then I flatten the image and it shrinks down to 5.7 GB. But this does is a raw installation without any run command. And flattening a container removes all environment variables from it and they need to be recreated in the final app.
Then I create my app in another image that starts with "FROM msc_adams:rl_2022.1" and that adds the run command and the model files. (or you mount a drive with the model file, depending on your application).
Eventually I plan on making this raw image to be published as official on Dockerhub, but we are quite a bit away from that yet.
Note that I'm using the environment variable ADAMS_PATH_FOR_FMU to point to the installation. Not TOPDIR as that will be overwritten if you start the process with the msc script.
Your final app should now
recreate all the environment variables
Start Adams with "$ADAMS_PATH_FOR_FMU/mdi -c ......."
And of course handle the checkout of Adams license from your license server.