Skip to content

zgd716/fastapi_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Releases

No releases published

Packages

No packages published