This video shows – how to create a docker file , create docker image out of file , how to create a container using same image and how to push the image to AWS ECR using docker authentication.
Its has clean explanation and demo doing all required tasks.
Note: Please use video pause option to copy the code.
source