Python (FastAPI) app template — z3k platform
Find a file Use this template
Arthur Zinck eff6f9fad0
Some checks failed
build-image / build (push) Failing after 2s
ci: preview build on pull requests
2026-07-27 11:51:36 +00:00
.forgejo/workflows ci: preview build on pull requests 2026-07-27 11:51:36 +00:00
.dockerignore feat: python template — .dockerignore 2026-07-26 20:10:04 +00:00
Dockerfile feat: platform base images (z3k-images) 2026-07-27 07:13:42 +00:00
main.py feat: python template — main.py 2026-07-26 20:10:02 +00:00
README.md feat: python template — README.md 2026-07-26 20:10:05 +00:00
requirements.txt feat: python template — requirements.txt 2026-07-26 20:10:03 +00:00

Python (FastAPI) app template

A minimal FastAPI service for the z3k platform.

  • Listens on PORT (default 8000), binds 0.0.0.0.
  • GET /health — liveness/readiness probe, returns {"status": "ok"}.
  • GET / — greeting using the APP_NAME env var.

Environment variables come from your app's Configuration tab in the console.

Edit the code and push to main — the platform builds and deploys it automatically.