Skip to content

Docker com Flask para ambientes de produção e desenvolvimento

License

Notifications You must be signed in to change notification settings

smartlab-br/flask

Repository files navigation

Smartlab Flask

Please, use this docker-composer to run the full stack NGINX > uWSGI > Flask

Run app with pure Flask

 docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask

Run app with uWSGI

 docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask uwsgi

Run app in debug mode

docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask debug

Run tools to test code quality

 docker run -p 8080:5000 -d -v /path/app:/app smartlab/flask test

Run terminal to inspect container

 docker run -p 8080:5000 -it -v /path/app:/app smartlab/flask terminal

Note: the main file must be named as /app/main.py

About

Docker com Flask para ambientes de produção e desenvolvimento

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published