Skip to content

republicroad/step_fastapi

Repository files navigation

step fastapi

文件结构

├── compose.yaml
├── otel_fastapi.py ├── requirement_dev.txt ├── requirements.txt
├── Containerfile
└── Dockerfile

Containerfile 是podman用来构建镜像的文件内容,语法和 Dockerfile 一致. podman按优先级依次寻找 Containerfile, Dockerfile 进行容器构建.

app.py 是 python web 应用程序 requirements.txt 是python依赖库的列表

compose.yaml 是 podman 用来构建容器,并按照依赖顺序构建的引导文件.

运行

podman compose up --build
podman compose up -d

About

fastapi best practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors