From 97cc2ec5232ba5549f2189ec24cebc2997092958 Mon Sep 17 00:00:00 2001 From: Vipul Modi - MSFT Date: Tue, 1 May 2018 18:34:14 -0700 Subject: [PATCH] update the dockerfile --- samples/src/helloworld/windows/Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/samples/src/helloworld/windows/Dockerfile b/samples/src/helloworld/windows/Dockerfile index 6eb5b31..4ab807a 100644 --- a/samples/src/helloworld/windows/Dockerfile +++ b/samples/src/helloworld/windows/Dockerfile @@ -1,2 +1,12 @@ -FROM microsoft/aspnet:4.7.1-windowsservercore-1709 -COPY . /inetpub/wwwroot +FROM microsoft/iis:windowsservercore-1709 + +RUN mkdir C:\site + +RUN powershell -NoProfile -Command \ + Import-module IISAdministration; \ + Remove-WebSite -Name 'Default Web Site'; \ + New-IISSite -Name "Site" -PhysicalPath C:\site -BindingInformation "*:80:" + +EXPOSE 80 + +ADD . /site