BUILD NATIVELY
Your project is the starting point.
Discover Python projects and configure FastAPI, Flask and Django entrypoints. Use a plain TOML file when you want explicit control.
Explore configurationTHE PYTHON-NATIVE OCI IMAGE BUILDER
Your code already knows how to be Python.
Give it a container, without the build machinery.
No Dockerfile. No Docker daemon.
Open source Experimental Python 3.11+
pycontainer build --tag myapp:latestBUILD ENGINEPython. Not a daemon.
OUTPUT FORMATStandard OCI images.
YOUR WORKFLOWCLI, TOML or Python API.
LESS CEREMONY / MORE CONTROL
Not another layer of infrastructure to manage. A focused tool that turns the project you have into the image you need.
Understand the fundamentalsBUILD NATIVELY
Discover Python projects and configure FastAPI, Flask and Django entrypoints. Use a plain TOML file when you want explicit control.
Explore configurationREUSE VERIFIED LAYERS
Content-addressed caching reuses unchanged application layers. Hash-pinned dependency closures can be cached when their inputs are provably safe.
Understand the buildPUBLISH DIRECTLY
Push to GHCR, Azure Container Registry, Docker Hub or another Registry v2 endpoint. No local Docker daemon in the middle.
Publish an imageA SHORT PATH TO AN IMAGE
Pull a base. Stage dependencies when requested.
Add your app. Write the OCI layout.
git clone https://github.com/spboyer/pycontainer-build.git
cd pycontainer-build
python -m pip install --no-deps -e .Python 3.11+ required. Package publication is pending; start from a repository checkout.
pycontainer build --tag myapp:latestChoose your target and stage dependencies explicitly.
pycontainer build --tag ghcr.io/you/myapp:v1 --pushOr keep the OCI layout for validation and import.
The builder is experimental. Linux image targets; wheel-only dependency installs; no cross-compilation. Building may need network access. Running the result still needs a container runtime.
Read the limitationsTHE FIELD GUIDE
Practical guides, copyable commands and the details that matter. Start small, then go deeper.
Open the documentationInstall, build, validate and run your first image.
TOML settings, base images, targets and metadata.
OCI validation, SBOMs and the optional Grype gate.
GitHub Actions, Poetry, Hatch, Skaffold and Tilt.
MEET YOUR EXISTING TOOLCHAIN
LESS SETUP. SAME PYTHON.