Skip to content

Latest commit

 

History

History
34 lines (15 loc) · 449 Bytes

README.md

File metadata and controls

34 lines (15 loc) · 449 Bytes

python api 部署 demo

flask docker部署

docker build -t flask_image .

docker run -d -p 9001:80 flask_image

fastapi docker部署

docker build -t fastapi_image .

docker run -d -p 9002:80 fastapi_image

django docker部署

docker build -t django .

docker run -d -p 9999:80 -e VARIABLE_NAME="application" django

api调用结果

flask api:

fastapi api: