THE PYTHON-NATIVE OCI IMAGE BUILDER

Python in.
Containers out.

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+

01 / THE IMAGEOCI STANDARD
One image, three kinds of layersYour application sits above staged Python dependencies and unchanged base-image layers, assembled into an OCI image.
Your applicationPython dependenciesBase image
FROM YOUR PROJECT DIRECTORY
pycontainer build --tag myapp:latest

BUILD ENGINEPython. Not a daemon.

OUTPUT FORMATStandard OCI images.

YOUR WORKFLOWCLI, TOML or Python API.

LESS CEREMONY / MORE CONTROL

Built around
your Python.

Not another layer of infrastructure to manage. A focused tool that turns the project you have into the image you need.

Understand the fundamentals
01

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 configuration
02

REUSE VERIFIED LAYERS

Keep the work. Skip the repetition.

Content-addressed caching reuses unchanged application layers. Hash-pinned dependency closures can be cached when their inputs are provably safe.

Understand the build
03

PUBLISH DIRECTLY

An OCI image. Your registry.

Push to GHCR, Azure Container Registry, Docker Hub or another Registry v2 endpoint. No local Docker daemon in the middle.

Publish an image

A SHORT PATH TO AN IMAGE

Source. Build. Ship.

Pull a base. Stage dependencies when requested.
Add your app. Write the OCI layout.

01 / INSTALL FROM SOURCE
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.

02

Build from your project

pycontainer build --tag myapp:latest

Choose your target and stage dependencies explicitly.

03

Take it to your registry

pycontainer build --tag ghcr.io/you/myapp:v1 --push

Or keep the OCI layout for validation and import.

BUILT WITH CLEAR BOUNDARIES

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 limitations

LESS SETUP. SAME PYTHON.

Your next image starts
with your code.

Get started