Skip to content
This repository was archived by the owner on May 31, 2019. It is now read-only.
Prev Previous commit
Next Next commit
Use the right kind of quotes to make powershell happy
  • Loading branch information
Nate McMaster committed Nov 16, 2017
commit 070287c276e16cc227a8464a4c6c7bb446915c68
4 changes: 2 additions & 2 deletions 2.0/nanoserver-1709/kitchensink/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN Invoke-WebRequest -UseBasicParsing https://nodejs.org/dist/v${env:NODE_VERSI
Remove-Item -Force git.zip

# Retrieve additional runtimes
RUN ('https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/${env:NETCORE_1_0_VERSION}/dotnet-win-x64.${env:NETCORE_1_0_VERSION}.zip', `
'https://dotnetcli.blob.core.windows.net/dotnet/release/1.1.0/Binaries/${env:NETCORE_1_1_VERSION}/dotnet-win-x64.${env:NETCORE_1_1_VERSION}.zip' ) `
RUN ("https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/${env:NETCORE_1_0_VERSION}/dotnet-win-x64.${env:NETCORE_1_0_VERSION}.zip", `
"https://dotnetcli.blob.core.windows.net/dotnet/release/1.1.0/Binaries/${env:NETCORE_1_1_VERSION}/dotnet-win-x64.${env:NETCORE_1_1_VERSION}.zip" ) `
| % { `
Invoke-WebRequest $_ -UseBasicParsing -OutFile dotnet.zip; `
# Ignore errors and don't use -Force. We want to keep the existing dotnet.exe instead of overwriting `
Expand Down
4 changes: 2 additions & 2 deletions 2.0/nanoserver-sac2016/kitchensink/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ RUN Invoke-WebRequest -UseBasicParsing https://nodejs.org/dist/v${env:NODE_VERSI

RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '/nodejs' + ';' + $Env:ProgramFiles + '/git/cmd')

RUN ('https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/${env:NETCORE_1_0_VERSION}/dotnet-win-x64.${env:NETCORE_1_0_VERSION}.zip', `
'https://dotnetcli.blob.core.windows.net/dotnet/release/1.1.0/Binaries/${env:NETCORE_1_1_VERSION}/dotnet-win-x64.${env:NETCORE_1_1_VERSION}.zip' ) `
RUN ("https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/${env:NETCORE_1_0_VERSION}/dotnet-win-x64.${env:NETCORE_1_0_VERSION}.zip", `
"https://dotnetcli.blob.core.windows.net/dotnet/release/1.1.0/Binaries/${env:NETCORE_1_1_VERSION}/dotnet-win-x64.${env:NETCORE_1_1_VERSION}.zip" ) `
| % { `
Invoke-WebRequest $_ -UseBasicParsing -OutFile dotnet.zip; `
# Ignore errors and don't use -Force. We want to keep the existing dotnet.exe instead of overwriting `
Expand Down