How difficult would it be to extend buildLayeredImage to compress the layers?
I realize that the final output is gzipped and that it isn’t necessary to have layers gzipped to load into a container repository. However, I have a use-case where I’m loading the container.tar into Bazel via
container_load and gzips layers if they are not already gzipped. See:rules_docker/intermediate-form.md at 3b0187852774ef0e424c92ec7b78a2a199a0503b · bazelbuild/rules_docker · GitHub This is slow for large images.