2021-02-18 18:39:35 +00:00
|
|
|
# escape=`
|
2021-07-15 21:57:11 +00:00
|
|
|
FROM mcr.microsoft.com/windows/servercore:20H2
|
2021-02-18 18:39:35 +00:00
|
|
|
|
|
|
|
ADD https://aka.ms/vs/16/release/channel C:\docker\visualstudio.release.chman
|
|
|
|
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\docker\vs_buildtools.exe
|
|
|
|
COPY vs16.config C:\docker\.vsconfig
|
|
|
|
|
|
|
|
RUN C:\docker\vs_buildtools.exe --quiet --wait --norestart --nocache `
|
|
|
|
--channelUri C:\docker\visualstudio.release.chman `
|
|
|
|
--installChannelUri C:\docker\visualstudio.release.chman `
|
|
|
|
--config "C:\docker\.vsconfig" `
|
|
|
|
--installPath C:\msvc
|
|
|
|
|
|
|
|
VOLUME C:\source\
|
|
|
|
WORKDIR C:\source\
|
2021-02-23 23:32:37 +00:00
|
|
|
ENTRYPOINT ["powershell", "-NoExit", "-Command", "Import-Module C:\\msvc\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll;", "Enter-VsDevShell -VsInstallPath C:\\msvc\\ -DevCmdArguments -arch=amd64;"]
|