The contents node within environment defines where to find packages, how to validate them, and which packages to install as build-time dependencies.
Local Building
When building locally, you must include Wolfi package repository information. This is not required when submitting to the Wolfi OS repository.
repositories
List of repositories to fetch packages from. Warning: Do not mix Alpine apk repositories with Wolfi apk repositories.
keyring
List of keys used to validate the authenticity of a repository.
packages
List of packages to install in the build environment for running the pipeline (build-time dependencies).
You can specify versions using the following syntax:
go>1.21: Installs anything newer than 1.21 (excluding 1.21).foo=~4.5.6: Installs any version starting with "4.5.6" (e.g., 4.5.6-r7).python3: Installs the latest stable version.
environment:
contents:
repositories:
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
packages:
- busybox
- ca-certificates-bundle
- go>1.21
- foo=~4.5.6
- python3