Fix permission problem when building docker image