Build optimization for CI/CD

My needs are not quite the same but the way I reuse artifacts between docker builds is by mapping /usr/local/cargo/registry to the same volume between docker builds:

I'm not sure, debug, release and bench profiles can use different compiler flags and optimisations so there might not be enough room for sharing. See e.g. Saving Recompilations with --release - #11 by mbrubeck for inspiration.