-
-
Save kulmam92/4e7416e7a22cd55998b3d18c11d828aa to your computer and use it in GitHub Desktop.
Dockerfile for MSBuild / ASP.NET
This file contains 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
# Customize / optimize as necessary. | |
# This could probably change to plain Windows Server Core as a base-image. | |
FROM microsoft/iis:10.0.14393.206 | |
SHELL ["powershell"] | |
RUN Invoke-WebRequest "https://download.microsoft.com/download/9/B/B/9BB1309E-1A8F-4A47-A6C5-ECF76672A3B3/BuildTools_Full.exe" -OutFile "$env:TEMP\net.exe" -UseBasicParsing | |
RUN & "$env:TEMP\net.exe" /Silent /Full | |
RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \ | |
Install-WindowsFeature Web-Asp-Net45 | |
RUN Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "C:\windows\nuget.exe" -UseBasicParsing | |
WORKDIR "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0" | |
RUN & "C:\windows\nuget.exe" Install MSBuild.Microsoft.VisualStudio.Web.targets -Version 12.0.4 | |
RUN mv 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\MSBuild.Microsoft.VisualStudio.Web.targets.12.0.4\tools\VSToolsPath\*' 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\' | |
CMD ["C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\msbuild.exe"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment