Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/aspnet/3.5/windowsservercore-2009/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
ARG REPO=mcr.microsoft.com/dotnet/framework/runtime
FROM $REPO:3.5-windowsservercore-2009

RUN powershell -Command `
$ErrorActionPreference = 'Stop'; `
$ProgressPreference = 'SilentlyContinue'; `
Add-WindowsFeature Web-Server; `
Add-WindowsFeature Web-Asp-Net; `
Remove-Item -Recurse C:\inetpub\wwwroot\*; `
Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.10/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe `
RUN dism /Online /Quiet /Enable-Feature /All /FeatureName:IIS-WebServerRole /FeatureName:IIS-ASPNET `
&& dism /Online /Quiet /Disable-Feature /FeatureName:IIS-WebServerManagementTools `
&& del /q "C:\inetpub\wwwroot\*" `
&& FOR /D %p IN ("C:\inetpub\wwwroot\*.*") DO rmdir "%p" /s /q `
&& curl -fSLo ServiceMonitor.exe https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.10/ServiceMonitor.exe `
&& %windir%\System32\inetsrv\appcmd set apppool /apppool.name:DefaultAppPool /managedRuntimeVersion:v2.0 `
&& C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update `
&& C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update
Expand Down
35 changes: 14 additions & 21 deletions src/aspnet/4.8/windowsservercore-2009/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,22 @@
ARG REPO=mcr.microsoft.com/dotnet/framework/runtime
FROM $REPO:4.8-windowsservercore-2009

RUN powershell -Command "`
$ErrorActionPreference = 'Stop'; `
$ProgressPreference = 'SilentlyContinue'; `
`
Add-WindowsFeature Web-Server; `
Add-WindowsFeature NET-Framework-45-ASPNET; `
Add-WindowsFeature Web-Asp-Net45; `
Remove-Item -Recurse C:\inetpub\wwwroot\*; `
Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.10/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe; `
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update; `
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update"
RUN dism /Online /Quiet /Enable-Feature /All /FeatureName:IIS-WebServerRole /FeatureName:NetFx4Extended-ASPNET45 /FeatureName:IIS-ASPNET45 `
&& dism /Online /Quiet /Disable-Feature /FeatureName:IIS-WebServerManagementTools `
&& del /q "C:\inetpub\wwwroot\*" `
&& FOR /D %p IN ("C:\inetpub\wwwroot\*.*") DO rmdir "%p" /s /q `
&& curl -fSLo ServiceMonitor.exe https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.10/ServiceMonitor.exe `
&& C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe update `
&& C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update

# Install Roslyn compilers and ngen binaries
RUN powershell -Command "`
$ErrorActionPreference = 'Stop'; `
$ProgressPreference = 'SilentlyContinue'; `
`
Invoke-WebRequest https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg -OutFile c:\microsoft.net.compilers.2.9.0.zip; `
Expand-Archive -Path c:\microsoft.net.compilers.2.9.0.zip -DestinationPath c:\RoslynCompilers; `
Remove-Item c:\microsoft.net.compilers.2.9.0.zip -Force; `
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | `
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | `
&C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe"
RUN curl -fSLo microsoft.net.compilers.2.9.0.zip https://api.nuget.org/packages/microsoft.net.compilers.2.9.0.nupkg `
&& mkdir c:\RoslynCompilers `
&& tar -C c:\RoslynCompilers -zxf microsoft.net.compilers.2.9.0.zip `
&& del microsoft.net.compilers.2.9.0.zip `
&& C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe `
&& C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe `
&& C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe

ENV ROSLYN_COMPILER_LOCATION c:\RoslynCompilers\tools

Expand Down
8 changes: 1 addition & 7 deletions src/wcf/4.8/windowsservercore-2009/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ ARG REPO=mcr.microsoft.com/dotnet/framework/aspnet
FROM $REPO:4.8-windowsservercore-2009

# Install Windows components required for WCF service hosted on IIS
RUN powershell -Command `
$ErrorActionPreference = 'Stop'; `
$ProgressPreference = 'SilentlyContinue'; `
`
Add-WindowsFeature NET-WCF-TCP-Activation45; `
Add-WindowsFeature NET-WCF-HTTP-Activation45; `
Add-WindowsFeature Web-WebSockets
RUN dism /Online /Quiet /Enable-Feature /All /FeatureName:WCF-HTTP-Activation45 /FeatureName:WCF-TCP-Activation45 /FeatureName:IIS-WebSockets

# Enable net.tcp protocol for default web site on IIS
RUN windows\system32\inetsrv\appcmd.exe set app "Default Web Site/" /enabledProtocols:"http,net.tcp"
Expand Down