As per this discussion on the LLVM Forum, the solution is to build with -DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU" .
-DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU"
The Dockerfile can be found on GitHub