A random images flask app deployed to AWS ElasticBeanstalk using Docker.
Using the Dockerfile run the below commands
-
Build Docker Image docker build -t .
-
Run container /w image docker run -d --publish 8888:5000
-
Login to ECR aws ecr get-login-password --region | docker login --username AWS --password-stdin .dkr.ecr..amazonaws.com
-
Tag the version docker tag test:latest .dkr.ecr.-1.amazonaws.com/:
-
Upload docker push .dkr.ecr..amazonaws.com/YOURREPO:YOURTAG
- From Elastic beanstalk console : Create New Application > choose : Web Server Environment and Under base configuration section > Choose Docker
- Upload Dockerrun.aws.json file as source code.