Deploy ERPNext on AWS ECR Fargate

Hi, I’m trying to set up ERPNext on AWS ECR. I wanted to know if it is possible to deploy it on ECR using Fargate. If so how can I create the image in such a way that fits into the ECR environment and also the task definitions?