Product Docs
Open Source
Education
This page provides a reference for apko’s YAML specification.
This section defines sources and packages you want to include in your image.
*It is not recommended to mix Alpine apks with Wolfi apks.
contents: repositories: - https://dl-cdn.alpinelinux.org/alpine/edge/main packages: - alpine-base
This section defines an entry point command for your image.
entrypoint: command: /usr/bin/php81
The architectures to build. This top-level directive expects a list with all architectures that should be a target for the build. By default, apko will try to build for all architectures that are currently supported.
archs: - x86_64
This section defines environment variables that will be set for this image.
environment: PATH: /usr/sbin:/sbin:/usr/bin:/bin myVAR: "test"
This section defines users and groups that should be added to this image.
accounts: groups: - groupname: nonroot gid: 65532 users: - username: nonroot uid: 65532 run-as: root