python-docker:为Python Web应用程序编写Dockerfile的指南

时间:2021-02-05 07:08:19
【文件属性】:
文件名称:python-docker:为Python Web应用程序编写Dockerfile的指南
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-05 07:08:19
python docker dockerfile flask alpine 一个简单的用Python Flask编写的Hello World应用程序。 包含用于开发(带有热重载)和生产的Dockerfile。 使用任何dockerfile构建并运行: $ docker build -f [dockerfile] -t python-docker . $ docker run --rm -it -p 8080:8080 python-docker 使用Gunicorn进行生产。
【文件预览】:
python-docker-master
----.gitignore(42B)
----gunicorn_app()
--------requirements.txt(15B)
--------__init__.py(70B)
--------server.py(171B)
--------conf()
----src()
--------requirements.txt(6B)
--------server.py(268B)
----.dockerignore(47B)
----1-python-simple.Dockerfile(224B)
----README.md(306B)
----static_app()
--------templates()
--------requirements.txt(6B)
--------static()
--------server.py(293B)
----6.multi-stage-production-python.Dockerfile(744B)
----5.single-stage-production-python.Dockerfile(292B)
----2-python-hot-reload.Dockerfile(291B)
----4.python-ui-static.Dockerfile(235B)

网友评论