| 
				
					
						
							 | 
			||
|---|---|---|
| conf | ||
| conf.default | ||
| favicon_app | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| Dockerfile.1 | ||
| README.md | ||
| docker-compose.yml | ||
| entrypoint.sh | ||
| favicon.ico | ||
| favicon.png | ||
| main.py | ||
| nginx.conf | ||
| requirements.txt | ||
| run.py | ||
| startup.sh | ||
		
			
				
				README.md
			
		
		
			
			
				
				
			
		
	
	api_favicon
python3 -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
- 
启动方式:
python3 main.py 或 uwsgi --ini uwsgi.ini
 - 
API使用
 
运行
- pip install fastapi uvicorn
 - uvicorn main:app --reload --port 8081
 
构建镜像(别忘了最后的 .)
docker build -t demo-app:latest .
运行容器(-d 后台;-p 宿主机端口:容器端口)
docker run -d --name demo -p 8000:8000 demo-app:latest
- docker-compose up --build