I recommend just using a complete Ubuntu VM and running the default installer there.
However, if you are experienced with Linux/Cloud/Docker you can:
-
Bootstrap the image somewhere
-
Push the bootstraped image to a Docker registry somewhere
-
Deploy the bootstrapped image
Bonus points if you do it behind a load balancer, using managed PostgreSQL and Redis, using a CDN, sharing a block storage for compiled assets, automatic scaling with health check, etc… The rabbit hole goes on.