The imagebuild example is much slower than the docker cli. For a relatively small build (docker cli reports 25.15MB of build context) which is fully cached, the docker cli takes around 0.27 seconds and imagebuild.rs takes 0m1.352s. I haven't profiled it, but output takes much longer to appear for imagebuild.rs and my suspicion is that the tarball operation might be the cause: https://github.com/softprops/shiplift/blob/9750d29614776e1372ef8b6580e0ae0eedc6801f/src/image.rs#L124
The
imagebuild
example is much slower than the docker cli. For a relatively small build (docker cli reports 25.15MB of build context) which is fully cached, the docker cli takes around0.27
seconds andimagebuild.rs
takes0m1.352s
. I haven't profiled it, but output takes much longer to appear forimagebuild.rs
and my suspicion is that the tarball operation might be the cause: https://github.com/softprops/shiplift/blob/9750d29614776e1372ef8b6580e0ae0eedc6801f/src/image.rs#L124