I write Dockerfile which is based on windowsnanoserver. I need to add to this image git. In order to achieve it I did the following:
Dockerfile
RUN Invoke-WebR
You can download and use the Git Thumbdrive edition: https://git-scm.com/download/win
look for the link under:
Git for Windows Portable ("thumbdrive edition")
E.G.: https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/PortableGit-2.23.0-64-bit.7z.exe