Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit a5e995f

Browse files
HongGitmcy94w
authored andcommitted
Adding 4.7.2 asp.net images (#100)
* Adding 4.7.2 asp.net images * fix NGEN errors * Add runtime tag to DockerFile * fix submodule issue * correct branding for 1709 in readme
1 parent bd5a3d6 commit a5e995f

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# escape=`
2+
3+
FROM microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-1709
4+
5+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
6+
7+
ENV COMPLUS_NGenProtectedProcess_FeatureEnabled 0
8+
9+
RUN Add-WindowsFeature Web-Server; `
10+
Add-WindowsFeature NET-Framework-45-ASPNET; `
11+
Add-WindowsFeature Web-Asp-Net45; `
12+
Remove-Item -Recurse C:\inetpub\wwwroot\*; `
13+
Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.3/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe
14+
15+
#download Roslyn nupkg and ngen the compiler binaries
16+
RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.3.1.nupkg -OutFile c:\microsoft.net.compilers.2.3.1.zip ; `
17+
Expand-Archive -Path c:\microsoft.net.compilers.2.3.1.zip -DestinationPath c:\RoslynCompilers ; `
18+
Remove-Item c:\microsoft.net.compilers.2.3.1.zip -Force ; `
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"]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# escape=`
2+
3+
FROM microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-ltsc2016
4+
5+
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
6+
7+
ENV COMPLUS_NGenProtectedProcess_FeatureEnabled 0
8+
9+
RUN Add-WindowsFeature Web-Server; `
10+
Add-WindowsFeature NET-Framework-45-ASPNET; `
11+
Add-WindowsFeature Web-Asp-Net45; `
12+
Remove-Item -Recurse C:\inetpub\wwwroot\*; `
13+
Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.3/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe
14+
15+
#download Roslyn nupkg and ngen the compiler binaries
16+
RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.3.1.nupkg -OutFile c:\microsoft.net.compilers.2.3.1.zip ; `
17+
Expand-Archive -Path c:\microsoft.net.compilers.2.3.1.zip -DestinationPath c:\RoslynCompilers ; `
18+
Remove-Item c:\microsoft.net.compilers.2.3.1.zip -Force ; `
19+
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update ; `
20+
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update ; `
21+
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | `
22+
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | `
23+
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe | `
24+
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | `
25+
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | `
26+
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ;
27+
28+
ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools
29+
30+
EXPOSE 80
31+
32+
ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Supported Windows Server 2016 Version 1709 (Fall Creators Update) amd64 tags
1+
# Supported Windows Server, version 1709 amd64 tags
22

3+
- [`4.7.2-windowsservercore-1709`, `4.7.2`, `latest` (*4.7.2-windowsservercore-1709/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.7.2-windowsservercore-1709/runtime/Dockerfile)
34
- [`4.7.1-windowsservercore-1709`, `4.7.1`, `latest` (*4.7.1-windowsservercore-1709/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.7.1-windowsservercore-1709/runtime/Dockerfile)
45
- [`3.5-windowsservercore-1709`, `3.5` (*3.5-windowsservercore-1709/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/3.5-windowsservercore-1709/runtime/Dockerfile)
56

67
# Supported Windows Server 2016 amd64 tags
78

9+
- [`4.7.2-windowsservercore-ltsc2016`, `4.7.2`, `latest` (*4.7.2-windowsservercore-ltsc2016/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.7.2-windowsservercore-ltsc2016/runtime/Dockerfile)
810
- [`4.7.1-windowsservercore-ltsc2016`, `4.7.1`, `latest` (*4.7.1-windowsservercore-ltsc2016/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.7.1-windowsservercore-ltsc2016/runtime/Dockerfile)
911
- [`4.7-windowsservercore-ltsc2016`, `4.7` (*4.7-windowsservercore-ltsc2016/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.7-windowsservercore-ltsc2016/runtime/Dockerfile)
1012
- [`4.6.2-windowsservercore-ltsc2016`, `4.6.2` (*4.6.2-windowsservercore-ltsc2016/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.6.2-windowsservercore-ltsc2016/runtime/Dockerfile)

0 commit comments

Comments
 (0)