Skip to content

Instantly share code, notes, and snippets.

@harishrathi
Created December 13, 2016 11:41
Show Gist options
  • Save harishrathi/0be73a68f4b60f8b91ee9a01a2f78e2f to your computer and use it in GitHub Desktop.
Save harishrathi/0be73a68f4b60f8b91ee9a01a2f78e2f to your computer and use it in GitHub Desktop.
FROM microsoft/iis
RUN ["powershell.exe", "Install-WindowsFeature NET-Framework-45-ASPNET"]
RUN ["powershell.exe", "Install-WindowsFeature Web-Asp-Net45"]
ADD web-app/ c:\\web-app
EXPOSE 8081
RUN powershell New-Website -Name 'web-app' -Port 8081 -PhysicalPath 'c:\web-app' -ApplicationPool '.NET v4.5'
ENTRYPOINT powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment