apko
$ apko Official Low Riskapko builds minimal, reproducible, single-layer OCI container images directly from APK package repositories using declarative YAML (apko.yaml). It generates SPDX and CycloneDX JSON SBOMs natively via --sbom-formats and writes local OCI tarballs via apko build without a Docker daemon.
brew install apko apko resolves APK packages and synthesizes local OCI tarballs and SBOM JSON files directly on disk without needing MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Fully declarative non-interactive YAML workflow producing JSON lockfiles (apko.lock.json) and SPDX/CycloneDX JSON SBOMs cleanly.
apko lockoutputs reproducible JSON lockfilesapko buildemits SPDX/CycloneDX JSON SBOMs via--sbom-formats
Separates local apko build (tarball only) from remote apko publish, with zero Docker daemon or arbitrary shell RUN execution.
- No
RUNshell scripts—declarative APK package installation only - Local tarball output on
apko buildwithout implicit registry pushes
Single static Go binary via Homebrew, go install, and GitHub Releases across macOS, Linux, and Windows.
- Daemonless cross-platform Go binary
Produces minimal, bit-for-bit reproducible multi-arch distroless images and SBOMs in one step.
- Single-layer APK image assembly with built-in multi-arch and SBOM output
Maintained by Chainguard (chainguard-dev/apko) under Apache-2.0.
- Official
chainguard-dev/apkorepository
Good YAML schema examples and --help, though advanced APK packaging workflows often pair with melange.
- Docs in
chainguard-dev/apko/docs
Security, Auth & Guardrails
Reads OCI registry auth from ~/.docker/config.json on apko publish; apko build runs locally without registry auth.
100% free and open-source (Apache-2.0) from Chainguard.
# apko Agent Rules - Prefer `apko lock` and `apko build` (local tarball) over `apko publish` until image contents and SBOMs are verified. - Pin APK repositories and keyring entries explicitly in `apko.yaml` rather than trusting unverified third-party repos.
Agent-Ready Command Recipes
Safe Read-Only Queries
apko lock apko.yaml --output apko.lock.json
Resolves exact APK package versions and checksums into apko.lock.json without building an image tarball.
Controlled Writes & Previews
apko build --sbom-formats spdx --sbom-path ./sbom apko.yaml app:dev app.tar
Builds a reproducible distroless OCI tarball locally and emits structured SPDX JSON SBOM files into ./sbom.
Strengths for Agents
- + Separates local
apko buildfrom remoteapko publishfor safe offline artifact verification. - + Generates reproducible
apko.lock.jsonand SPDX/CycloneDX JSON SBOMs automatically. - + Zero Docker daemon and zero arbitrary Dockerfile
RUNexecution.
Caveats & Pitfalls
- ! Only installs APK packages (Alpine/Wolfi); custom binaries must first be packaged as APKs (e.g., via
melange). - ! Remote APK index resolution requires network access unless using a local APK cache.