-
Notifications
You must be signed in to change notification settings - Fork 335
/
Copy pathDockerfile
20 lines (16 loc) · 916 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# escape=`
ARG REPO=mcr.microsoft.com/dotnet/framework/runtime
FROM $REPO:3.5-20241210-windowsservercore-ltsc2016
RUN powershell -Command `
$ErrorActionPreference = 'Stop'; `
$ProgressPreference = 'SilentlyContinue'; `
Add-WindowsFeature Web-Server; `
Add-WindowsFeature Web-Asp-Net; `
Remove-Item -Recurse C:\inetpub\wwwroot\*; `
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
Invoke-WebRequest -Uri https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.10/ServiceMonitor.exe -OutFile C:\ServiceMonitor.exe `
&& %windir%\System32\inetsrv\appcmd set apppool /apppool.name:DefaultAppPool /managedRuntimeVersion:v2.0 `
&& %windir%\Microsoft.NET\Framework64\v2.0.50727\ngen update `
&& %windir%\Microsoft.NET\Framework\v2.0.50727\ngen update
EXPOSE 80
ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]