-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.windows
More file actions
21 lines (16 loc) · 896 Bytes
/
Copy pathDockerfile.windows
File metadata and controls
21 lines (16 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS msvc-clang-cl
SHELL ["cmd", "/S", "/C"]
# See https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#evergreen-bootstrappers
#
ADD https://aka.ms/vs/17/release.ltsc.17.8/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
RUN C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache `
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
--add Microsoft.VisualStudio.Component.VC.Llvm.Clang `
--add Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset `
--add Microsoft.VisualStudio.Component.Windows11SDK.22000 `
--installPath C:\BuildTools `
|| IF "%ERRORLEVEL%"=="3010" EXIT 0
ENV PATH=C:\BuildTools\MSBuild\Current\Bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem
# Default shell
CMD ["cmd", "/k", "C:\\BuildTools\\VC\\Auxiliary\\Build\\vcvarsall.bat x86_amd64"]