Containerization
How Kitaru builds and configures container images for remote execution
Default behavior
The image parameter
image parameterfrom kitaru import flow
import kitaru
@flow(
image=kitaru.ImageSettings(
base_image="python:3.12-slim",
requirements=["kitaru[pydantic-ai,openai]", "httpx"],
apt_packages=["git"],
environment={"MY_VAR": "value"},
),
)
def my_agent(topic: str) -> str:
...Available fields
Field
Type
Description
Automatic Kitaru injection
Replicating your local environment
Custom Dockerfile
System packages
Setting image config at different levels
Environment variables inside the container
Secret-backed environment variables
How source code is packaged
Related pages
Last updated
Was this helpful?