Setup git via windows docker file

后端 未结 4 1142
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 19:18

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:

RUN Invoke-WebR         


        
4条回答
  •  故里飘歌
    2021-01-22 20:05

    Call the git.setup.exe installation file with the parameters /? to list all possible switches.

    To run a silent installation: git.setup.exe /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS

    To do a customized installation:

    run manually git installation with the parameter /SAVEINF="filename"

    e.g:. git-2.xx.exe /SAVEINF="filename"

    And then to repeat the installation with /LOADINF="filename"

    e.g.: git.setup.exe /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /LOADINF="filename"

    It's documented on: Git: Silent-or-Unattended-Installation

提交回复
热议问题