docker: Use mw tmp directory in cache dir to fix perm issue

Merged Addshore requested to merge tmp-dir-in-cache-dir into main

Because of the docker images currently used that run as user nobody, there are sometimes some permission issues when using /tmp, so use a directory somewhere we have a little more control over

Bug: T293682

Merge request reports