Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 607 Bytes

File metadata and controls

29 lines (18 loc) · 607 Bytes

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