Skip to content

Commit fdc20c8

Browse files
authored
use add instead of invoke web request in nanoserver docker file (#6255)
1 parent c4c4747 commit fdc20c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/release/nanoserver/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV PS_DOWNLOAD_URL https://github.com/PowerShell/PowerShell/releases/download/v
1717
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
1818

1919
RUN if (!($env:PS_VERSION -match '^\d+\.\d+\.\d+(-\w+(\.\d+)?)?$' )) {throw ('PS_Version ({0}) must match the regex "^\d+\.\d+\.\d+(-\w+(\.\d+)?)?$"' -f $env:PS_VERSION)}
20-
RUN Invoke-WebRequest $Env:PS_DOWNLOAD_URL -OutFile powershell.zip
20+
ADD $PS_DOWNLOAD_URL /powershell.zip
2121

2222
RUN Expand-Archive powershell.zip -DestinationPath \PowerShell
2323

0 commit comments

Comments
 (0)