There was an older blog post about deploying Seaside (a SmallTalk web app framework) on AWS. It boiled down to stripping the image of unused parts (tree shaking), including the GUI and copying the images over to the server behind a load balancer. Sorry for the lack of details, I can't find that particular article. This looks like it might answer the questions: https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBo...
And... how do you deploy a Pharo-based desktop application? Does it need the image? Can you compile it?