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)

Client Challenge

I'll make a more detailed blog post this weekend for creating a dancer2 application in the small container. It's a bit misplaced to put all that inside the example perl code since it's specific to fatpacking dancer2 and not to the module.