Practice Windows container hosting brettski.com, a simple asp.net mvc application
151
dotnet35, based of of Microsoft/aspnet:3.5 container image.
FROM microsoft/dotnet-framework:3.5
# copy compiled code into container
# build sent to /pub
RUN mkdir c:\\website
COPY .\\brettski4\\pub\\release c:\\website
WORKDIR c:\\website
# Add features
RUN powershell -Command Add-WindowsFeature -Name Web-Server; \
Add-WindowsFeature -Name Web-Asp-Net45; \
Invoke-WebRequest -Uri "https://github.com/Microsoft/iis-docker/raw/master/windowsservercore/ServiceMonitor.exe" -Outfile "c:\ServiceMonitor.exe"
# Add sites
RUN powershell -NoProfile -Command Import-Module IISAdministration; \
New-IISSite -Name "brettskicom" -PhysicalPath "c:\website" -BindingInformation "*:8088:"
EXPOSE 8088
ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]
Content type
Image
Digest
Size
6.5 GB
Last updated
over 9 years ago
docker pull brettski/brettskicom:dotnet35