How to deploy an app to AWS ECS using Docker?

Hi, I am trying to deploy Shopify app to AWS ECS. My understanding is that I need to create a docker image first but I couldn’t figure out how to write the Dockerfile.

I am using the express template here https://github.com/Shopify/shopify-app-template-node.

When I followed the document to build the frontend I got an error saying Vite not found.

Another question I have is that in order to deploy the shopify app, do I need to have purchased a domain? Is it possible to use aws api gateway to get a free https domain?

I would greatly appreciate if someone can give me some pointers. Thanks!