Ko - chainguard-dev/apko

Ko is a tool for building and publishing container images, developed by Google. It is similar to apko, a command-line tool for building container images using a declarative language based on YAML, which is inspired by ko. Both tools use their own package format (apko uses the apk package format) and can be used together.

According to the Chainguard documentation, apko can be used to build the base image for ko. Here’s an example of how to do this:

  1. Create a .ko.yaml file to define the base image:
baseImageOverrides:
chainguard.dev/apko: cgr.dev/chainguard/wolfi-base
  1. Use apko to build the base image:
docker run --rm -v "$(pwd)":/work -w /work cgr.dev/chainguard/apko build -t my-base-image:latest .