An open API service indexing awesome lists of open source software.

https://github.com/nicor88/docker-flask-boilerplate

Docker image for Flask App
https://github.com/nicor88/docker-flask-boilerplate

containers docker flask k8s

Last synced: 3 months ago
JSON representation

Docker image for Flask App

Awesome Lists containing this project

README

          

# docker-flask-boilerplate
Docker image for Flask App

## Requirements
* Docker

## Development

### Build the image


docker build --rm -t docker-flask-boilerplate:latest .

### Run it


docker run -p 8000:8000 docker-flask-boilerplate:latest

### Build and run with docker-compose


docker-compose up --build

## AWS ECR
It's possible to push your image to AWS ECR simply calling a script in this repo.

It requires some setup:
* setup an ENV variable `$AWS_ACCOUNT`, containing the your AWS account number
* setup an ENV variable `$AWS_DEFAULT_REGION`, containing the your AWS account number
* install `awscli`
* configure your credentails in `~/.aws/credentials`
* make sure that your AWS IAM user it's able to push to ECR
* run the command:


bash scripts/push_to_ecr.sh your_repo_name