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

Commit f0f3a80

Browse files
authored
5B updates (#104)
* Update for 5B * some fixes for 5B * update Readme for 5B
1 parent 4af0f92 commit f0f3a80

File tree

6 files changed

+47
-6
lines changed

6 files changed

+47
-6
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# escape=`
2+
3+
FROM microsoft/dotnet-framework:3.5-runtime-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.3/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe
10+
11+
EXPOSE 80
12+
13+
ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]

4.7.1-windowsservercore-ltsc2016/runtime/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ RUN Add-WindowsFeature Web-Server; `
1414
RUN Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.3.1.nupkg -OutFile c:\microsoft.net.compilers.2.3.1.zip ; `
1515
Expand-Archive -Path c:\microsoft.net.compilers.2.3.1.zip -DestinationPath c:\RoslynCompilers ; `
1616
Remove-Item c:\microsoft.net.compilers.2.3.1.zip -Force ; `
17-
&set COMPLUS_NGenProtectedProcess_FeatureEnabled=0 ; `
1817
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update ; `
1918
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update ; `
2019
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | `

4.7.2-windowsservercore-1709/runtime/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ FROM microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-1709
44

55
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
66

7-
ENV COMPLUS_NGenProtectedProcess_FeatureEnabled 0
8-
97
RUN Add-WindowsFeature Web-Server; `
108
Add-WindowsFeature NET-Framework-45-ASPNET; `
119
Add-WindowsFeature Web-Asp-Net45; `
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# escape=`
2+
3+
FROM microsoft/dotnet-framework:4.7.2-runtime-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.3/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.3.1.nupkg -OutFile c:\microsoft.net.compilers.2.3.1.zip ; `
15+
Expand-Archive -Path c:\microsoft.net.compilers.2.3.1.zip -DestinationPath c:\RoslynCompilers ; `
16+
Remove-Item c:\microsoft.net.compilers.2.3.1.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"]

4.7.2-windowsservercore-ltsc2016/runtime/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ FROM microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-ltsc2016
44

55
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
66

7-
ENV COMPLUS_NGenProtectedProcess_FeatureEnabled 0
8-
97
RUN Add-WindowsFeature Web-Server; `
108
Add-WindowsFeature NET-Framework-45-ASPNET; `
119
Add-WindowsFeature Web-Asp-Net45; `

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Supported Windows Server, version 1709 amd64 tags
1+
# Supported Windows Server, version 1803 amd64 tags
2+
3+
- [`4.7.2-windowsservercore-1803`, `4.7.2`, `latest` (*4.7.2-windowsservercore-1803/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.7.2-windowsservercore-1803/runtime/Dockerfile)
4+
- [`3.5-windowsservercore-1803`, `3.5` (*3.5-windowsservercore-1803/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/3.5-windowsservercore-1803/runtime/Dockerfile)
5+
6+
# Supported Windows Server, version 1709 amd64 tags
27

38
- [`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)
49
- [`4.7.1-windowsservercore-1709`, `4.7.1` (*4.7.1-windowsservercore-1709/runtime/Dockerfile*)](https://github.com/Microsoft/aspnet-docker/blob/master/4.7.1-windowsservercore-1709/runtime/Dockerfile)

0 commit comments

Comments
 (0)