├── .gitignore ├── 3.5-windowsservercore-ltsc2016 ├── sample │ └── Dockerfile └── runtime │ └── Dockerfile ├── 4.7-windowsservercore-ltsc2016 ├── sample │ └── Dockerfile └── runtime │ └── Dockerfile ├── 4.6.2-windowsservercore-ltsc2016 ├── sample │ └── Dockerfile └── runtime │ └── Dockerfile ├── 4.7.1-windowsservercore-ltsc2016 ├── sample │ └── Dockerfile └── runtime │ └── Dockerfile ├── README.md ├── 3.5-windowsservercore-1803 └── runtime │ └── Dockerfile ├── 3.5-windowsservercore-1903 └── runtime │ └── Dockerfile ├── 3.5-windowsservercore-ltsc2019 └── runtime │ └── Dockerfile ├── LICENSE.md ├── 4.8-windowsservercore-1803 └── runtime │ └── Dockerfile ├── 4.8-windowsservercore-1903 └── runtime │ └── Dockerfile ├── 4.7.2-windowsservercore-1803 └── runtime │ └── Dockerfile ├── 4.8-windowsservercore-ltsc2016 └── runtime │ └── Dockerfile ├── 4.8-windowsservercore-ltsc2019 └── runtime │ └── Dockerfile ├── 4.7.2-windowsservercore-ltsc2019 └── runtime │ └── Dockerfile └── 4.7.2-windowsservercore-ltsc2016 └── runtime └── Dockerfile /.gitignore: -------------------------------------------------------------------------------- 1 | 3.5/source/ -------------------------------------------------------------------------------- /3.5-windowsservercore-ltsc2016/sample/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM microsoft/aspnet:3.5 2 | ARG site_root=. 3 | ADD ${site_root} /inetpub/wwwroot 4 | -------------------------------------------------------------------------------- /4.7-windowsservercore-ltsc2016/sample/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM microsoft/aspnet:4.7 2 | ARG site_root=. 3 | ADD ${site_root} /inetpub/wwwroot 4 | -------------------------------------------------------------------------------- /4.6.2-windowsservercore-ltsc2016/sample/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM microsoft/aspnet:4.6.2 2 | ARG site_root=. 3 | ADD ${site_root} /inetpub/wwwroot 4 | -------------------------------------------------------------------------------- /4.7.1-windowsservercore-ltsc2016/sample/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM microsoft/aspnet:4.7.1 2 | ARG site_root=. 3 | ADD ${site_root} /inetpub/wwwroot 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | aspnet-docker [Obsolete] 2 | ======================== 3 | 4 | **The microsoft/aspnet-docker GitHub project has been archived.** Ongoing development of Docker images for ASP.NET can be found in [Microsoft/dotnet-framework-docker](https://github.com/Microsoft/dotnet-framework-docker). -------------------------------------------------------------------------------- /3.5-windowsservercore-1803/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:3.5-windowsservercore-1803 4 | 5 | RUN powershell -Command Add-WindowsFeature Web-Server & ` 6 | powershell -Command Add-WindowsFeature Web-Asp-Net & ` 7 | %windir%\System32\inetsrv\appcmd set apppool /apppool.name:DefaultAppPool /managedRuntimeVersion:v2.0 & ` 8 | powershell -Command Remove-Item -Recurse C:\inetpub\wwwroot\* & ` 9 | powershell -Command Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 10 | 11 | EXPOSE 80 12 | 13 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 14 | -------------------------------------------------------------------------------- /3.5-windowsservercore-1903/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:3.5-windowsservercore-1903 4 | 5 | RUN powershell -Command Add-WindowsFeature Web-Server & ` 6 | powershell -Command Add-WindowsFeature Web-Asp-Net & ` 7 | %windir%\System32\inetsrv\appcmd set apppool /apppool.name:DefaultAppPool /managedRuntimeVersion:v2.0 & ` 8 | powershell -Command Remove-Item -Recurse C:\inetpub\wwwroot\* & ` 9 | powershell -Command Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe ; 10 | 11 | EXPOSE 80 12 | 13 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 14 | -------------------------------------------------------------------------------- /3.5-windowsservercore-ltsc2016/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:3.5-windowsservercore-ltsc2016 4 | 5 | RUN powershell -Command Add-WindowsFeature Web-Server & ` 6 | powershell -Command Add-WindowsFeature Web-Asp-Net & ` 7 | %windir%\System32\inetsrv\appcmd set apppool /apppool.name:DefaultAppPool /managedRuntimeVersion:v2.0 & ` 8 | powershell -Command Remove-Item -Recurse C:\inetpub\wwwroot\* & ` 9 | powershell -Command Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe ; 10 | 11 | EXPOSE 80 12 | 13 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 14 | -------------------------------------------------------------------------------- /3.5-windowsservercore-ltsc2019/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:3.5-windowsservercore-ltsc2019 4 | 5 | RUN powershell -Command Add-WindowsFeature Web-Server & ` 6 | powershell -Command Add-WindowsFeature Web-Asp-Net & ` 7 | %windir%\System32\inetsrv\appcmd set apppool /apppool.name:DefaultAppPool /managedRuntimeVersion:v2.0 & ` 8 | powershell -Command Remove-Item -Recurse C:\inetpub\wwwroot\* & ` 9 | powershell -Command Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe ; 10 | 11 | EXPOSE 80 12 | 13 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 14 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Microsoft Corporation 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /4.8-windowsservercore-1803/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-1803 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.8-windowsservercore-1903/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-1903 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.7-windowsservercore-ltsc2016/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.7-windowsservercore-ltsc2016 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.7.2-windowsservercore-1803/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-1803 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.8-windowsservercore-ltsc2016/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2016 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.8-windowsservercore-ltsc2019/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.6.2-windowsservercore-ltsc2016/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.6.2-windowsservercore-ltsc2016 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.7.2-windowsservercore-ltsc2019/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2019 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 18 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 23 | 24 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 25 | 26 | EXPOSE 80 27 | 28 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 29 | -------------------------------------------------------------------------------- /4.7.1-windowsservercore-ltsc2016/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.7.1-windowsservercore-ltsc2016 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update ; ` 18 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update ; ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 23 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 24 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 25 | 26 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 27 | 28 | EXPOSE 80 29 | 30 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 31 | -------------------------------------------------------------------------------- /4.7.2-windowsservercore-ltsc2016/runtime/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape=` 2 | 3 | FROM mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2016 4 | 5 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 6 | 7 | RUN Add-WindowsFeature Web-Server; ` 8 | Add-WindowsFeature NET-Framework-45-ASPNET; ` 9 | Add-WindowsFeature Web-Asp-Net45; ` 10 | Remove-Item -Recurse C:\inetpub\wwwroot\*; ` 11 | Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe 12 | 13 | #download Roslyn nupkg and ngen the compiler binaries 14 | RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip ; ` 15 | Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers ; ` 16 | Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force ; ` 17 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update ; ` 18 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update ; ` 19 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 20 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 21 | &C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | ` 22 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | ` 23 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | ` 24 | &C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ; 25 | 26 | ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools 27 | 28 | EXPOSE 80 29 | 30 | ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"] 31 | --------------------------------------------------------------------------------