🍺 BREW Explorer

← all formulae

apko

brew install apko v1.2.17 Apache-2.0

Build OCI images from APK packages directly without Dockerfile

332
30-day installs · #2113
1.3k
90-day · #1959
4.9k
365-day · #1958
1.6k
★ GitHub stars · updated 2mo ago

Build dependencies

go

GitHub topics

containers docker oci

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "go"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Build OCI images from APK packages directly without Dockerfile",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:27+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "apko",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-19T14:02:52Z",
  "github_readme_excerpt": "# apko: apk-based OCI image builder\n\nBuild and publish [OCI container images](https://opencontainers.org/) built from [apk](https://wiki.alpinelinux.org/wiki/Package_management) packages.\n\napko has the following key features:\n\n- **Fully reproducible by default.** Run apko twice and you will get exactly the same binary.\n- **Fast.** apko aims to build images in ms.\n- **Small.** apko generated images only contain what\u0027s needed by the application,\n  in the style of [distroless](https://github.com/GoogleContainerTools/distroless).\n- **SBOM Support.** apko produces a Software Bill of Materials (SBOM) for images, detailing all the packages inside.\n- **Services.** apko supports using the [s6 supervision suite](https://skarnet.org/software/s6) to run multiple processes\n  in a container without reaping or signalling issues.\n\nPlease note that apko is a work in progress and details are subject to change!\n\n## Installation\n\nYou can install apko from Homebrew:\n\n```shell\nbrew install apko\n```\n\nYou can also install apko from source:\n\n```shell\ngo install chainguard.dev/apko@latest\n```\n\nYou can also use the apko container image:\n\n```shell\ndocker run cgr.dev/chainguard/apko version\n```\n\nTo use the examples, you\u0027ll generally want to mount your current directory into the container, e.g.:\n\n```shell\ndocker run -v \"$PWD\":/work cgr.dev/chainguard/apko build examples/alpine-base.yaml apko-alpine:edge apko-alpine.tar\n```\n\n## Quickstart\n\nAn apko file for building an Alpine base image looks like this:\n\n```yaml\ncontents:\n  repositories:\n    - https://dl-cdn.alpinelinux.org/alpine/v3.22/main\n  packages:\n    - alpine-base\n\nentrypoint:\n  command: /bin/sh -l\n\n# optional environment configuration\nenvironment:\n  PATH: /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin\n```\n\nWe can build this with apko from any environment with apk tooling:\n\n```shell\napko build examples/alpine-base.yaml apko-alpine:test apko-alpine.tar\n```\n\n```\n...\n2022/04/08 13:22:31 apko (aarch64): generating SBOM\n2022/04/08 ",
  "github_repo": "chainguard-dev/apko",
  "github_stars": 1638,
  "github_topics": [
    "containers",
    "docker",
    "oci"
  ],
  "homepage": "https://github.com/chainguard-dev/apko",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 332,
  "installs_365d": 4853,
  "installs_90d": 1279,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "apko",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 2113,
  "rank_365d": 1958,
  "rank_90d": 1959,
  "raw_hash": "0c2d0a29300c5c5e",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/a/apko.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.2.17",
  "versioned_formulae": [],
  "why_use_this": null
}