Docker Community Forums

Share and learn in the Docker community.

Microsoft Build image

automatedbuilds

(Pkrysiak) #1

Has anyone got this image to build? It always hangs on me
https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container
here is the docker file that always fails

FROM microsoft/windowsservercore
ADD https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe C:\\Bin\\nuget.exe

ADD https://aka.ms/vs/15/release/vs_buildtools.exe C:\\TEMP\\vs_buildtools.exe

// this is the bit that hangs //
RUN setx /m PATH "%PATH%;C:\Bin" \
 && C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --all \
    --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 \
    --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 \
    --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 \
    --remove Microsoft.VisualStudio.Component.Windows81SDK \
 || IF "%ERRORLEVEL%"=="3010" EXIT 0

ENTRYPOINT C:\BuildTools\Common7\Tools\VsDevCmd.bat &&

CMD ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]

Alternately does anyone how of an image to build asp.net web application?


(Skerr1) #2

Did you ever get a resolution to this?