├── docker
│ ├── ubuntu
│ │ └── Dockerfile.py # Ubuntu & 安装python3
│ ├── base
│ │ └── Dockerfile.py # 安装ubuntu依赖包以及python安装包
│ └── product
│ └── Dockerfile.py # 部署项目代码
├── app
│ ├── __init__.py # 初始配置, 包括log, 中间件, 错误检查等
│ ├── router.py
│ ├── controller.py
│ ├── service.py
│ └── connection.py # DB链接
├── log
│ └── ..
├── Makefile
├── manage.py
├── README.md
├── requirements.txt 项目依赖
├── .gitignore
├── .dockerignore
└── test
├── conftest.py 单元测试配置的依赖
└── test_urls.py 单元测试Demo
git clone git@git.oschina.net:zhinengtougu/flask-docker-scaffold.git product_name
cd product_name
rm -rf .git
git init
make run # 执行脚本
make test # 运行测试