Delete Dockerfile
This commit is contained in:
Родитель
88bdd07d42
Коммит
4b29a823ca
|
@ -1,28 +0,0 @@
|
|||
# escape=`
|
||||
|
||||
FROM microsoft/dotnet-framework:4.7.2-runtime-windowsservercore-ltsc2019
|
||||
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN 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.6/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe
|
||||
|
||||
#download Roslyn nupkg and ngen the compiler binaries
|
||||
RUN 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 | `
|
||||
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\csc.exe /ExeConfig:c:\RoslynCompilers\tools\csc.exe | `
|
||||
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\vbc.exe /ExeConfig:c:\RoslynCompilers\tools\vbc.exe | `
|
||||
&C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install c:\RoslynCompilers\tools\VBCSCompiler.exe /ExeConfig:c:\RoslynCompilers\tools\VBCSCompiler.exe ;
|
||||
|
||||
ENV ROSLYN_COMPILER_LOCATION c:\\RoslynCompilers\\tools
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]
|
Загрузка…
Ссылка в новой задаче