We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da97587 commit 8bb25b5Copy full SHA for 8bb25b5
1 file changed
golang/Dockerfile
@@ -2,10 +2,12 @@ FROM golang:1.8-nanoserver
2
3
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
4
5
-ENV GIT_VERSION 2.11.0
+ENV GIT_VERSION 2.12.0
6
ENV GIT_DOWNLOAD_URL https://github.com/git-for-windows/git/releases/download/v${GIT_VERSION}.windows.1/MinGit-${GIT_VERSION}-64-bit.zip
7
+ENV GIT_SHA256 6238f65c4d8412b993cb092efde4954f8cb7da4def54d0c1533835f00e83fdad
8
9
RUN Invoke-WebRequest -UseBasicParsing $env:GIT_DOWNLOAD_URL -OutFile git.zip; \
10
+ if ((Get-FileHash git.zip -Algorithm sha256).Hash -ne $env:GIT_SHA256) {exit 1} ; \
11
Expand-Archive git.zip -DestinationPath C:\git; \
12
Remove-Item git.zip; \
13
Write-Host 'Updating PATH ...'; \
0 commit comments