docker flask 源码

qqdepletion6470 21 0 ZIP 2021-04-18 07:04:48

简单的Dockerized Flask应用 这是部署在Docker容器中的简单Flask应用程序,可显示主机和客户端ip # create the python/flask image cd docker-images sh create_flask_image.sh # run with docker-compose up --build --remove-orphans # terminate with docker-compose down 第1步:创建名称为main_network的Docker桥网络 第2步:创建安装了flask的python-alpine映像 打开docker-images目录并通过运行脚本构建映像 第3步:运行烧瓶应用程序 使用docker-compose构建并运行flask应用程序

用户评论
请输入评论内容
评分:
暂无评论