I have the end goal of deploying a docker container on AWS Fargate. As it happens, my dockerfile has no local dependencies and my upload connection is very slow, thus I want to build it in the cloud. What would be the easiest way to build the image on AWS? Creating an EC2 Linux instance, installing docker and aws-cli in it, building the image then uploading to AWS ECR, if that's possible?

1 Answers

Yupik On

The easiest way is by using AWS CodeBuild - it will do everything for you, even push it to AWS ECR.

Basic instructions: here