1+ # escape=`
2+
3+ FROM mcr.microsoft.com/windows/servercore:ltsc2019
4+
5+ ADD https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe /vc_redist.x64.exe
6+ RUN start /wait C:\v c_redist.x64.exe /quiet /norestart
7+
8+ # Install chocolatey
9+ RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$env:chocolateyUseWindowsCompression = 'true'; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1"
10+
11+ # Install 7zip
12+ RUN choco install 7zip -y
13+
14+ # Install git
15+ RUN choco install git -y
16+
17+ # Install Java
18+ RUN choco install jdk8 --version=8.0.211 -y
19+
20+ # Install Maven
21+ RUN choco install maven -y
22+
23+ # Install Python3
24+ RUN choco install python --version=3.9.0 -y
25+
26+ # Install boto3
27+ RUN pip3 install boto3 --upgrade
28+
29+ # Install awscli
30+ RUN pip3 install awscli --upgrade
31+
32+ # Download the Build Tools bootstrapper.
33+ ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\T EMP\v s_buildtools.exe
34+
35+ # Install Build Tools with the Microsoft.VisualStudio.Workload.VCTools workload, excluding workloads and components with known issues.
36+ RUN C:\T EMP\v s_buildtools.exe --quiet --wait --norestart --nocache `
37+ --add Microsoft.VisualStudio.Workload.VCTools;includeRecommended `
38+ --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 `
39+ --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 `
40+ --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 `
41+ --remove Microsoft.VisualStudio.Component.Windows81SDK `
42+ || IF "%ERRORLEVEL%" =="3010" EXIT 0
43+
44+ # Add MSBuild and CMake to PATH
45+ RUN setx /M PATH "%PATH%;C:\P rogram Files (x86)\M icrosoft Visual Studio\2 019\B uildTools\M SBuild\C urrent\B in"
46+ RUN setx /M PATH "%PATH%;C:\P rogram Files (x86)\M icrosoft Visual Studio\2 019\B uildTools\C ommon7\I DE\C ommonExtensions\M icrosoft\C Make\C Make\b in"
47+
48+ # Install vcpkg for ZLIB compression support
49+ RUN git clone https://github.com/Microsoft/vcpkg.git C:\v cpkg
50+ RUN C:\v cpkg\b ootstrap-vcpkg.bat
51+ RUN C:\v cpkg\v cpkg.exe integrate install
52+ RUN C:\v cpkg\v cpkg.exe install zlib:x64-windows
53+
54+ CMD [ "cmd.exe" ]
0 commit comments