Released a first version of my #perl module Container::Builder on CPAN to build containers from scratch (like googles distroless containers).
See https://metacpan.org/pod/Container::Builder
There's a dancer2 example in the examples/ folder of the module. which makes a +-30MB compressed container image containing the dancer2 webapp.
It's also made to scrub timestamps so there's a lot of reuse in container layers within podman/docker since the hashes are stable if your inputs are stable.(Both TAR as well as GZIP have timestamps that could mess with this if not scrubbed)