Skip to content

Instantly share code, notes, and snippets.

@pieterdv
Last active November 15, 2016 20:08
Show Gist options
  • Save pieterdv/cd32df88bf945295b87013c6ba05fcb9 to your computer and use it in GitHub Desktop.
Save pieterdv/cd32df88bf945295b87013c6ba05fcb9 to your computer and use it in GitHub Desktop.
create windowsservercore
# escape=`
FROM microsoft/iis
SHELL ["powershell", "-command"]
# Install .NET
RUN Install-WindowsFeature NET-Framework-45-ASPNET; `
Install-WindowsFeature Web-Asp-Net45
# Configure Website
EXPOSE 8081
RUN Remove-Website -Name 'Default Web Site'; `
md c:\api; `
New-Website -Name 'api' `
-Port 8081 `
-PhysicalPath 'c:\api' `
-ApplicationPool '.NET v4.5'; `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment