You already have a working rule to copy from - the shell rule in rules.d/lab-rules.yaml. Your new rule has the same shape; only the process names and the priority change.
The condition that matters is proc.name in (...). For the shell rule that list was the shells. For a package manager, think about what the binary is actually called on different distros - apk on Alpine, apt/apt-get/dpkg on Debian and Ubuntu, yum/dnf/rpm on RHEL-family images.
Add the new rule to the same file, below the shell rule - a rules file can hold as many rules as you like. Then Falco has to re-read the file: stop it with Ctrl+C and docker compose ... up again, or just docker compose ... restart falco.
To trigger it, the target container is Alpine, so its package manager is apk. Installing anything will run it.
Need more? Here's the solution.