8000 Remove hash validation from nanoserver-insider dockerfile. (#4498) · PowerShell/PowerShell@b63a25c · GitHub
[go: up one dir, main page]

Skip to content

Commit b63a25c

Browse files
TravisEz13daxian-dbw
authored andcommitted
Remove hash validation from nanoserver-insider dockerfile. (#4498)
We are using HTTPS from the same location we are getting the dockerfile from, it should be enough.
1 parent d17aaad commit b63a25c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

docker/release/nanoserver-insider/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@ FROM ${WindowsServerCoreRepo}:$WindowsServerCoreVersion AS installer-env
1111

1212
# Arguments for installing powershell, must be defined in the container they are used
1313
ARG PS_VERSION=6.0.0-beta.5
14-
ARG PS_DOWNLOAD_SHA=DAB8CC377D1BADD91688AEC9277D7696CC8DB2C25CECBCC934BD91AA7C724901
1514

1615
ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v$PS_VERSION/PowerShell-$PS_VERSION-win10-win2016-x64.zip
1716

1817
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
1918
RUN Invoke-WebRequest $Env:PS_DOWNLOAD_URL -OutFile powershell.zip
20-
RUN if ((Get-FileHash powershell.zip -Algorithm sha256).Hash -ne $Env:PS_DOWNLOAD_SHA) { `
21-
Write-Host 'CHECKSUM VERIFICATION FAILED!'; `
22-
exit 1; `
23-
}
2419

2520
RUN Expand-Archive powershell.zip -DestinationPath \PowerShell
2621

0 commit comments

Comments
 (0)
0