Installing cuda in a lts-windowsserver-ltsc2022 docker image

I am using the installer exe from nvidia hompage. I copy it into my container and try to execute it there, but the container just waits indefinitely.


SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue';"]

COPY cuda_12.0.0_527.41_windows.exe cuda_12.0.0_527.41_windows.exe

RUN Start-Process \
        -FilePath  cuda_12.0.0_527.41_windows.exe \
        -ArgumentList '--silent', '--toolkit', '--toolkitpath=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0' \

Is there a reason why this doesn’t work. I am using the server2022 installer.

I checked that the copy works, the executable was successfully copied into the container.