Build your Docker image using the following command. For information on building a Docker file from scratch see the instructions here . You can skip this step if your image is already built:
$ docker build -t myproject-example-service .
After the build completes, tag your image so you can push the image to this repository:
$ docker tag myproject-example-service:latest 222337787619.dkr.ecr.ap-southeast-2.amazonaws.com/myproject-example-service:latest
Run the following command to push this image to your newly created AWS repository: