In this case the base image is then a packaging format, which takes us back to building special AMIs for this. Used to do EC2 deployments like this in the early days, using Packer.io.
Prefer containers because build once run anywhere, as opposed to build for each deployment target.