Last active
November 15, 2016 20:08
-
-
Save pieterdv/cd32df88bf945295b87013c6ba05fcb9 to your computer and use it in GitHub Desktop.
create windowsservercore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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