Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 938 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 938 Bytes

flask-app

A random images flask app deployed to AWS ElasticBeanstalk using Docker.

Using the Dockerfile run the below commands

#Commands required for docker image publish

  1. Build Docker Image docker build -t .

  2. Run container /w image docker run -d --publish 8888:5000

  3. Login to ECR aws ecr get-login-password --region | docker login --username AWS --password-stdin .dkr.ecr..amazonaws.com

  4. Tag the version docker tag test:latest .dkr.ecr.-1.amazonaws.com/:

  5. Upload docker push .dkr.ecr..amazonaws.com/YOURREPO:YOURTAG

#Commands required for Elastic Beanstalk

  1. From Elastic beanstalk console : Create New Application > choose : Web Server Environment and Under base configuration section > Choose Docker
  2. Upload Dockerrun.aws.json file as source code.