Public Repository

Last pushed: 5 months ago
Short Description
ASP.NET MVC image (Windows Containers Only)
Full Description

Demonstration of an ASP.NET MVC application running in a Windows Container.


Application Requirements

  • Windows Container on a Windows Host (Virtual or Bare Metal)
  • .NET Framework v4.5

Dockerfile

FROM microsoft/iis:10.0.14393.206
SHELL ["powershell"]

RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \
Install-WindowsFeature Web-Asp-Net45

COPY AspNetMvcDockerized AspNetMvc
RUN Remove-Website -Name 'Default Web Site'
RUN New-Website -Name 'aspnetmvc' -Port 80 \
-PhysicalPath 'c:\AspNetMvc' -ApplicationPool '.NET v4.5'

EXPOSE 80

CMD Write-Host IIS Started... ; \
while ($true) { Start-Sleep -Seconds 3600 }

Docker Pull Command
Owner
atplaysvc

Comments (0)