Go to file
jinql 407c803550 25.09.04 2025-09-04 23:13:16 +08:00
conf 25.09.04 2025-09-04 21:41:05 +08:00
conf.default 25.09.04 2025-09-04 21:41:05 +08:00
favicon_app 25.09.04 2025-09-04 22:43:45 +08:00
.dockerignore 25.09.04 2025-09-04 21:41:05 +08:00
.gitignore 25.09.03 2025-09-03 20:07:41 +08:00
Dockerfile 25.09.03 2025-09-03 22:56:30 +08:00
Dockerfile.1 25.09.01 2025-09-01 23:38:52 +08:00
README.md 25.08.31 2025-08-31 23:01:40 +08:00
docker-compose.yml 25.09.04 2025-09-04 23:13:16 +08:00
entrypoint.sh 25.09.04 2025-09-04 23:13:16 +08:00
favicon.ico init 2025-08-30 18:52:29 +08:00
favicon.png init 2025-08-30 18:52:29 +08:00
main.py 25.09.04 2025-09-04 22:43:45 +08:00
nginx.conf 25.08.31 2025-08-31 23:01:40 +08:00
requirements.txt 25.09.03 2025-09-03 20:07:41 +08:00
run.py 25.09.01 2025-09-01 22:37:47 +08:00
startup.sh 25.09.03 2025-09-03 20:07:41 +08:00

README.md

api_favicon

python3 -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

运行

  • 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