favicon-api-v3/README.md

27 lines
573 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# api_favicon
- https://api.xinac.net/
> python3 -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
- 启动方式:
python3 main.py 或 uwsgi --ini uwsgi.ini
- API使用
https://api.xinac.net/icon/?url=https://www.baidu.com
## 运行
- 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