machine requirements for jenkins and docker in aws?

I want to install jenkins and docker on some machine in aws.

I have nodejs application.

I use webpack to build my nodejs, and docker to push into the aws ecr.

What are the requirements for EC2 I need CPU/Memory/HD size?

Source: Docker Questions