Create the Docker Image for your backend and upload it to your repo on Elastic Container Registry

6.1 Go to your Node.js project folder.

cd ~/environment/msg-app-backend/

6.2. Build the image docker.

docker build -t workshop-api .

6.3. Upload the local image using the ECS CLI.

ecs-cli push workshop-api

6.4. Open the Amazon ECR console to see your workshop-api repository, you will see your latest image.

ECR Image