Buttons publishes a multi-arch Docker image to GitHub Container Registry. Use it to bake the binary into your agent image, run one-off commands, or mount state from the host.Documentation Index
Fetch the complete documentation index at: https://docs.buttons.sh/llms.txt
Use this file to discover all available pages before exploring further.
Image details
- Base: Alpine Linux
- Shell available:
/bin/sh— shell buttons work out of the box - Python / Node: not included — add via
apk addin your derived image - Architectures:
linux/amd64,linux/arm64
Pattern 1: Multi-stage copy (recommended)
The most common pattern for agent deployments. Copy just the binary into your own image — no Alpine overhead:buttons binary is statically linked with no external dependencies, so it runs in any Linux image.
Pattern 2: Direct docker run
For one-off commands or quick tests:Pattern 3: Volume-mounted state
Persist button state and run history to the host by mounting~/.buttons:
Adding Python or Node to a derived image
Shell buttons work in the base image. For Python or Node buttons, extend the image:Environment variables in containers
SetBUTTONS_HOME to control where state is stored inside the container:
Related
- Installation — all install options including curl and Go
- Install script — how the install.sh script works
- Button folder structure — what lives in
BUTTONS_HOME