If you're running on a Apple silicon, include the following argument when building your container:
--platform=linux/amd64
ex.
$ docker build --platform=linux/amd64 --no-cache -t myproject/mycontainer .
More details here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/create-container-image.html