This example demonstrates how to use rules_distroless with rules_img to create custom container images with minimal OS distributions.
This example showcases all major features of rules_distroless:
grouprule: Creates/etc/groupentries (similar togroupadd)passwdrule: Creates/etc/passwdentries (similar touseradd)- Defines multiple users and groups including root, appuser, database users, and www-data
cacertsrule: Generates CA certificate bundlesjava_keystorerule: Creates Java keystores with custom certificates- Example certificates included: Amazon Root CA 1 and 2
apt.yaml: Defines packages to install from Debian repositoriesapt.lock.json: Lock file for reproducible package versionsdpkg_statusrule: Creates package database for vulnerability scanners