We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7515eff commit 7cb6105Copy full SHA for 7cb6105
1.6/Dockerfile.windows
@@ -2,10 +2,12 @@ FROM windowsservercore
2
3
ENV GOLANG_VERSION 1.6.1
4
ENV GOLANG_DOWNLOAD_URL "https://golang.org/dl/go$GOLANG_VERSION.windows-amd64.zip"
5
+ENV GOLANG_DOWNLOAD_SHA256 "1505afbcc5f71598c6ffd2a56ad550e4e8728c05649e9085f725e38d6b5a0fb8"
6
7
RUN powershell -Command \
8
$ErrorActionPreference = 'Stop'; \
9
(New-Object System.Net.WebClient).DownloadFile('%GOLANG_DOWNLOAD_URL%', 'go.zip') ; \
10
+ if ((Get-FileHash go.zip -Algorithm sha256).Hash -ne $env:GOLANG_DOWNLOAD_SHA256) {exit 1} ; \
11
Expand-Archive go.zip -DestinationPath c:\\ ; \
12
Remove-Item go.zip -Force
13
0 commit comments