Supported Versions
Alpine 3.18, 3.19, 3.20, 3.21, 3.22Dockerfile
Build
How It Works
- Root.io’s RSA public key is written to
/etc/apk/keys/for package signature verification. - The
pkg.root.iorepository URL (with credentials inline) is appended to/etc/apk/repositories. - For each package,
apk search -e rootio-<pkg>checks if a Root-patched version exists. If yes, the patched version is installed; if not, the standard upstream package is used. - The
pkg.root.ioline is removed from/etc/apk/repositoriesin the sameRUNlayer, so credentials are never persisted in the image.
CI/CD Integration
- GitHub Actions
- GitLab CI
Troubleshooting
| Issue | Solution |
|---|---|
401 Unauthorized on apk update | Verify ROOTIO_API_KEY is set and passed via --secret |
rootio-<package> not found | Root hasn’t patched this package yet — the fallback installs the upstream version |
--secret flag not recognized | Prepend DOCKER_BUILDKIT=1 to your build command |
| Key verification error | Ensure the base64-encoded key is copied in full without line breaks |