git-docker/docker/Dockerfile.windows.1709
2018-09-11 16:06:41 -07:00

15 lines
719 B
Docker

FROM microsoft/windowsservercore:1709 AS git
SHELL ["powershell.exe", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest -UseBasicParsing https://github.com/git-for-windows/git/releases/download/v2.19.0-rc2.windows.1/MinGit-2.19.0.rc2.windows.1-64-bit.zip -OutFile git.zip; \
Expand-Archive git.zip -DestinationPath C:\git
FROM microsoft/windowsservercore:1709
COPY --from=git /git /git
ADD windows/* /bin/
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
CMD [ "powershell", "C:\\bin\\clone.ps1" ]