@@ -6,22 +6,22 @@ FROM microsoft/windowsservercore:1709 AS installer-env
66SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
77
88# Retrieve the runtime store
9- ENV ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL https://dist.asp.net/runtimestore/ 2.0.0/win-x64/aspnetcore.runtimestore.zip
10-
11- RUN Write-Host \" Downloading and extracting ${env:ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL} \" ; `
12- Invoke-WebRequest $env:ASPNETCORE_RUNTIMESTORE_DOWNLOAD_URL -OutFile cache.zip; `
13- Expand-Archive cache.zip -DestinationPath RuntimeStore; `
14- Remove-Item -Force cache.zip
15-
9+ RUN @( ' 2.0.0' , '2.0.3' ) | % { `
10+ $downloadUrl = \" https://dist.asp.net/runtimestore/${_}/win-x64/aspnetcore.runtimestore.zip \" ; `
11+ Write-Host \" Downloading and extracting $downloadUrl \" ; `
12+ Invoke-WebRequest $downloadUrl -OutFile cache.zip; `
13+ Expand-Archive cache.zip -DestinationPath RuntimeStore; `
14+ Remove-Item -Force cache.zip; `
15+ }
1616
1717# Runtime image
18- FROM microsoft/dotnet:2.0.0 -runtime-nanoserver-1709
18+ FROM microsoft/dotnet:2.0.3 -runtime-nanoserver-1709
1919
2020# Note: Runtime image's SHELL is the CMD shell (different than the installer image).
2121
2222# Set up network
2323ENV ASPNETCORE_URLS http://+:80
24- ENV ASPNETCORE_PKG_VERSION 2.0.0
24+ ENV ASPNETCORE_PKG_VERSION 2.0.3
2525
2626# Set up the runtime store
2727COPY --from=installer-env ["RuntimeStore" , "C:\\ Program Files\\ dotnet" ]
0 commit comments