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
- Host: GitHub
- URL: https://github.com/nicor88/docker-flask-boilerplate
- Owner: nicor88
- License: mit
- Created: 2019-01-03T10:41:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T20:15:48.000Z (about 3 years ago)
- Last Synced: 2025-07-14T17:59:53.664Z (12 months ago)
- Topics: containers, docker, flask, k8s
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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