Fix docker file uploads when using a different uid

The docker files upload and download didn't work when the user inside
the container had a different uid then the user outside.

To fix that, we are now doing the copy as root followed by a chown.