diff --git a/2.1/aspnetcore-runtime/windowsservercore-1709/amd64/Dockerfile b/2.1/aspnetcore-runtime/windowsservercore-1709/amd64/Dockerfile new file mode 100644 index 0000000000..83b3b3c54f --- /dev/null +++ b/2.1/aspnetcore-runtime/windowsservercore-1709/amd64/Dockerfile @@ -0,0 +1,23 @@ +# escape=` +FROM microsoft/windowsservercore:1709 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Install ASP.NET Core Runtime +ENV ASPNETCORE_VERSION 2.1.5 + +RUN Invoke-WebRequest -OutFile aspnetcore.zip https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/$Env:ASPNETCORE_VERSION/aspnetcore-runtime-$Env:ASPNETCORE_VERSION-win-x64.zip; ` + $aspnetcore_sha512 = '98224c8646b7eab234b97f52735905bb0219ea2290490e408ff469459ea82116068854e7b9c5869bccef780b4ceac17477f34f23e06a0a6bedca445a3866d73e'; ` + if ((Get-FileHash aspnetcore.zip -Algorithm sha512).Hash -ne $aspnetcore_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive aspnetcore.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force aspnetcore.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure web servers to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINERS=true diff --git a/2.1/aspnetcore-runtime/windowsservercore-1803/amd64/Dockerfile b/2.1/aspnetcore-runtime/windowsservercore-1803/amd64/Dockerfile new file mode 100644 index 0000000000..dfcb72d8f9 --- /dev/null +++ b/2.1/aspnetcore-runtime/windowsservercore-1803/amd64/Dockerfile @@ -0,0 +1,23 @@ +# escape=` +FROM microsoft/windowsservercore:1803 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Install ASP.NET Core Runtime +ENV ASPNETCORE_VERSION 2.1.5 + +RUN Invoke-WebRequest -OutFile aspnetcore.zip https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/$Env:ASPNETCORE_VERSION/aspnetcore-runtime-$Env:ASPNETCORE_VERSION-win-x64.zip; ` + $aspnetcore_sha512 = '98224c8646b7eab234b97f52735905bb0219ea2290490e408ff469459ea82116068854e7b9c5869bccef780b4ceac17477f34f23e06a0a6bedca445a3866d73e'; ` + if ((Get-FileHash aspnetcore.zip -Algorithm sha512).Hash -ne $aspnetcore_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive aspnetcore.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force aspnetcore.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure web servers to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINERS=true diff --git a/2.1/aspnetcore-runtime/windowsservercore-ltsc2016/amd64/Dockerfile b/2.1/aspnetcore-runtime/windowsservercore-ltsc2016/amd64/Dockerfile new file mode 100644 index 0000000000..2ee6d8e911 --- /dev/null +++ b/2.1/aspnetcore-runtime/windowsservercore-ltsc2016/amd64/Dockerfile @@ -0,0 +1,23 @@ +# escape=` +FROM microsoft/windowsservercore:ltsc2016 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Install ASP.NET Core Runtime +ENV ASPNETCORE_VERSION 2.1.5 + +RUN Invoke-WebRequest -OutFile aspnetcore.zip https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/$Env:ASPNETCORE_VERSION/aspnetcore-runtime-$Env:ASPNETCORE_VERSION-win-x64.zip; ` + $aspnetcore_sha512 = '98224c8646b7eab234b97f52735905bb0219ea2290490e408ff469459ea82116068854e7b9c5869bccef780b4ceac17477f34f23e06a0a6bedca445a3866d73e'; ` + if ((Get-FileHash aspnetcore.zip -Algorithm sha512).Hash -ne $aspnetcore_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive aspnetcore.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force aspnetcore.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure web servers to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINERS=true diff --git a/2.1/runtime/windowsservercore-1709/amd64/Dockerfile b/2.1/runtime/windowsservercore-1709/amd64/Dockerfile new file mode 100644 index 0000000000..9b08abcc96 --- /dev/null +++ b/2.1/runtime/windowsservercore-1709/amd64/Dockerfile @@ -0,0 +1,23 @@ +# escape=` +FROM microsoft/windowsservercore:1709 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Install ASP.NET Core Runtime +ENV ASPNETCORE_VERSION 2.1.5 + +RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$Env:DOTNET_VERSION/dotnet-runtime-$Env:DOTNET_VERSION-win-x64.zip; ` + $dotnet_sha512 = 'aa7145201f1ed0689ff6abeb53b9c64c1efa1420dee7e5cc916168fd2479e252ed56b2492221f4038edbc73056accd9d4a46ec469155f2bdf0fc71bd909bd220'; ` + if ((Get-FileHash dotnet.zip -Algorithm sha512).Hash -ne $dotnet_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive dotnet.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force dotnet.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure web servers to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINERS=true diff --git a/2.1/runtime/windowsservercore-1803/amd64/Dockerfile b/2.1/runtime/windowsservercore-1803/amd64/Dockerfile new file mode 100644 index 0000000000..0e81efb0db --- /dev/null +++ b/2.1/runtime/windowsservercore-1803/amd64/Dockerfile @@ -0,0 +1,23 @@ +# escape=` +FROM microsoft/windowsservercore:1803 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Install ASP.NET Core Runtime +ENV ASPNETCORE_VERSION 2.1.5 + +RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$Env:DOTNET_VERSION/dotnet-runtime-$Env:DOTNET_VERSION-win-x64.zip; ` + $dotnet_sha512 = 'aa7145201f1ed0689ff6abeb53b9c64c1efa1420dee7e5cc916168fd2479e252ed56b2492221f4038edbc73056accd9d4a46ec469155f2bdf0fc71bd909bd220'; ` + if ((Get-FileHash dotnet.zip -Algorithm sha512).Hash -ne $dotnet_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive dotnet.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force dotnet.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure web servers to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINERS=true diff --git a/2.1/runtime/windowsservercore-ltsc2016/amd64/Dockerfile b/2.1/runtime/windowsservercore-ltsc2016/amd64/Dockerfile new file mode 100644 index 0000000000..41623fe510 --- /dev/null +++ b/2.1/runtime/windowsservercore-ltsc2016/amd64/Dockerfile @@ -0,0 +1,23 @@ +# escape=` +FROM microsoft/windowsservercore:ltsc2016 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Install ASP.NET Core Runtime +ENV ASPNETCORE_VERSION 2.1.5 + +RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Runtime/$Env:DOTNET_VERSION/dotnet-runtime-$Env:DOTNET_VERSION-win-x64.zip; ` + $dotnet_sha512 = 'aa7145201f1ed0689ff6abeb53b9c64c1efa1420dee7e5cc916168fd2479e252ed56b2492221f4038edbc73056accd9d4a46ec469155f2bdf0fc71bd909bd220'; ` + if ((Get-FileHash dotnet.zip -Algorithm sha512).Hash -ne $dotnet_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive dotnet.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force dotnet.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure web servers to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINERS=true diff --git a/2.1/sdk/windowsservercore-1709/amd64/Dockerfile b/2.1/sdk/windowsservercore-1709/amd64/Dockerfile new file mode 100644 index 0000000000..b63e7d9426 --- /dev/null +++ b/2.1/sdk/windowsservercore-1709/amd64/Dockerfile @@ -0,0 +1,30 @@ +# escape=` +FROM microsoft/windowsservercore:1709 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Retrieve .NET Core SDK +ENV DOTNET_SDK_VERSION 2.1.403 + +RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$Env:DOTNET_SDK_VERSION/dotnet-sdk-$Env:DOTNET_SDK_VERSION-win-x64.zip; ` + $dotnet_sha512 = '52bb1117f170587eaceec1f78cdc41a41d4272154b5535bf61c86bfb75287323cac248434b05eabe4bc7716facabdb0f6475015cbb63f38d91af662618a06720'; ` + if ((Get-FileHash dotnet.zip -Algorithm sha512).Hash -ne $dotnet_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive dotnet.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force dotnet.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure Kestrel web server to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINER=true ` + # Enable correct mode for dotnet watch (only mode supported in a container) + DOTNET_USE_POLLING_FILE_WATCHER=true ` + # Skip extraction of XML docs - generally not useful within an image/container - helps performance + NUGET_XMLDOC_MODE=skip + +# Trigger first run experience by running arbitrary cmd to populate local package cache +RUN dotnet help diff --git a/2.1/sdk/windowsservercore-1803/amd64/Dockerfile b/2.1/sdk/windowsservercore-1803/amd64/Dockerfile new file mode 100644 index 0000000000..e360a6eab9 --- /dev/null +++ b/2.1/sdk/windowsservercore-1803/amd64/Dockerfile @@ -0,0 +1,30 @@ +# escape=` +FROM microsoft/windowsservercore:1803 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Retrieve .NET Core SDK +ENV DOTNET_SDK_VERSION 2.1.403 + +RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$Env:DOTNET_SDK_VERSION/dotnet-sdk-$Env:DOTNET_SDK_VERSION-win-x64.zip; ` + $dotnet_sha512 = '52bb1117f170587eaceec1f78cdc41a41d4272154b5535bf61c86bfb75287323cac248434b05eabe4bc7716facabdb0f6475015cbb63f38d91af662618a06720'; ` + if ((Get-FileHash dotnet.zip -Algorithm sha512).Hash -ne $dotnet_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive dotnet.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force dotnet.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure Kestrel web server to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINER=true ` + # Enable correct mode for dotnet watch (only mode supported in a container) + DOTNET_USE_POLLING_FILE_WATCHER=true ` + # Skip extraction of XML docs - generally not useful within an image/container - helps performance + NUGET_XMLDOC_MODE=skip + +# Trigger first run experience by running arbitrary cmd to populate local package cache +RUN dotnet help diff --git a/2.1/sdk/windowsservercore-ltsc2016/amd64/Dockerfile b/2.1/sdk/windowsservercore-ltsc2016/amd64/Dockerfile new file mode 100644 index 0000000000..7cc03bdb9e --- /dev/null +++ b/2.1/sdk/windowsservercore-ltsc2016/amd64/Dockerfile @@ -0,0 +1,30 @@ +# escape=` +FROM microsoft/windowsservercore:ltsc2016 + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +# Retrieve .NET Core SDK +ENV DOTNET_SDK_VERSION 2.1.403 + +RUN Invoke-WebRequest -OutFile dotnet.zip https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$Env:DOTNET_SDK_VERSION/dotnet-sdk-$Env:DOTNET_SDK_VERSION-win-x64.zip; ` + $dotnet_sha512 = '52bb1117f170587eaceec1f78cdc41a41d4272154b5535bf61c86bfb75287323cac248434b05eabe4bc7716facabdb0f6475015cbb63f38d91af662618a06720'; ` + if ((Get-FileHash dotnet.zip -Algorithm sha512).Hash -ne $dotnet_sha512) { ` + Write-Host 'CHECKSUM VERIFICATION FAILED!'; ` + exit 1; ` + }; ` + ` + Expand-Archive dotnet.zip -DestinationPath $Env:ProgramFiles\dotnet; ` + Remove-Item -Force dotnet.zip +RUN setx /M PATH $($Env:PATH + ';' + $Env:ProgramFiles + '\dotnet') + +# Configure Kestrel web server to bind to port 80 when present +ENV ASPNETCORE_URLS=http://+:80 ` + # Enable detection of running in a container + DOTNET_RUNNING_IN_CONTAINER=true ` + # Enable correct mode for dotnet watch (only mode supported in a container) + DOTNET_USE_POLLING_FILE_WATCHER=true ` + # Skip extraction of XML docs - generally not useful within an image/container - helps performance + NUGET_XMLDOC_MODE=skip + +# Trigger first run experience by running arbitrary cmd to populate local package cache +RUN dotnet help