-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 1.45 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# escape=`
FROM microsoft/iis:10.0.14393.206
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $VerbosePreference = 'Continue'; "]
RUN Install-WindowsFeature Web-ASP; `
Install-WindowsFeature Web-CGI; `
Install-WindowsFeature Web-ISAPI-Ext; `
Install-WindowsFeature Web-ISAPI-Filter; `
Install-WindowsFeature Web-Includes; `
Install-WindowsFeature Web-HTTP-Errors; `
Install-WindowsFeature Web-Common-HTTP; `
Install-WindowsFeature Web-Performance; `
Install-WindowsFeature WAS; `
Import-Module IISAdministration;
RUN & c:\windows\system32\inetsrv\appcmd.exe unlock config /section:system.webServer/asp; `
& c:\windows\system32\inetsrv\appcmd.exe unlock config /section:system.webServer/handlers; `
& c:\windows\system32\inetsrv\appcmd.exe unlock config /section:system.webServer/modules; `
& c:\windows\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpErrors -errorMode:Detailed; `
& c:\windows\system32\inetsrv\appcmd.exe set config -section:asp -scriptErrorSentToBrowser:true
RUN Remove-Item 'C:\inetpub\wwwroot\*' -Recurse -Force
RUN Import-module WebAdministration; `
Get-IISConfigSection -SectionPath system.webServer/defaultDocument | Get-IISConfigCollection -CollectionName files | New-IISConfigCollectionElement -ConfigAttribute @{'Value' = 'index.asp'};
WORKDIR C:\inetpub\wwwroot\
COPY app/ .
EXPOSE 80