# Dockerfiles



# IIS - Default

Dockerfile

FROM mcr.microsoft.com/windows/servercore/iis  
RUN powershell -NoProfile -Command Remove-Item -Recurse C:\\inetpub\\wwwroot\\\*  
RUN powershell Remove-WebSite -Name 'Default Web Site'  
RUN powershell Import-Module WebAdministration;New-Item –Path IIS:\\AppPools\\WWWPool;New-Item -Path $env:systemdrive\\inetpub\\www -Type Directory;New-Item -Path $env:systemdrive\\inetpub\\XpServerDllFiles -Type Directory;New-WebSite -Name XpNDFAsiaSite -Port 4847 -PhysicalPath "$env:systemdrive\\inetpub\\www" -ApplicationPool WWWPool -Force;

WORKDIR /inetpub/www  
COPY content/ .

EXPOSE 4847

Build-Batch

@echo off  
docker build -t myiis:v1.0 .

# IIS - WCF

Dockerfile

FROM mcr.microsoft.com/dotnet/framework/wcf:4.8-windowsservercore-ltsc2016

RUN mkdir VSS2005  
COPY VSS2005 VSS2005  
RUN c:\\windows\\system32\\regsvr32.exe /i /s c:\\VSS2005\\ssapi.dll

WORKDIR /inetpub/wwwroot  
RUN C:\\Windows\\System32\\inetsrv\\appcmd set apppool /apppool.name:DefaultAppPool /enable32BitAppOnWin64:true  
\#COPY C:\\VSProjects\\VSSx86\\\_publish\\\_PrecompiledWeb\\wcfVssNet .  
COPY wcfVssNet .

Build-Batch

@echo off  
docker build -t wcfvssnet.v2.0:sac2016 .