1313# limitations under the License.
1414#
1515
16- FROM microsoft/dotnet- framework:4.7.1
16+ FROM mcr. microsoft.com /dotnet/ framework/sdk :4.8-windowsservercore-ltsc2022
1717
1818# Restore the default Windows shell for correct batch processing below.
1919SHELL ["cmd" , "/S" , "/C" ]
@@ -22,29 +22,29 @@ SHELL ["cmd", "/S", "/C"]
2222ADD https://aka.ms/vs/15/release/vs_buildtools.exe C:\T EMP\v s_buildtools.exe
2323RUN C:\T EMP\v s_buildtools.exe --quiet --wait --norestart --nocache `
2424 --installPath C:\B uildTools `
25- --all `
26- --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 `
27- --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 `
28- --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 `
29- --remove Microsoft.VisualStudio.Component.Windows81SDK `
25+ --add Microsoft.VisualStudio.Workload.VCTools `
26+ --add Microsoft.VisualStudio.Component.Windows10SDK.19041 `
3027 || IF "%ERRORLEVEL%" =="3010" EXIT 0
3128RUN DEL C:\T EMP\v s_buildtools.exe
3229
3330# Install CMake
34- ADD https://github.com/Kitware/CMake/releases/download/v3.13.4 /cmake-3.13.4-win64-x64 .msi C:\T EMP\c make.msi
31+ ADD https://github.com/Kitware/CMake/releases/download/v4.1.2 /cmake-4.1.2-windows-x86_64 .msi C:\T EMP\c make.msi
3532RUN msiexec.exe /i C:\T EMP\c make.msi /qn && `
3633 SETX PATH "%PATH%;C:\P rogram Files\C Make\b in" && `
3734 DEL C:\T EMP\c make.msi
3835
3936# Install boost (for the thrift runtime library build)
40- ADD https://boost.teeks99.com/bin/1.69.0/boost_1_69_0-msvc-14.1-64.exe C:\T EMP\b oost.exe
41- RUN C:\T EMP\b oost.exe /DIR="C:\L ibraries\b oost_1_69_0" /SILENT && `
42- DEL C:\T EMP\b oost.exe
37+ ADD https://boost.teeks99.com/bin/1.88.0/boost_1_88_0-msvc-14.1-64.exe C:\T EMP\b oost.exe
38+ ENV BOOST_ROOT=C:\L ibraries\b oost_1_88_0
39+ RUN C:\T EMP\b oost.exe /DIR=%BOOST_ROOT% /SILENT && `
40+ DEL C:\T EMP\b oost.exe && `
41+ SETX BOOST_LIBRARYDIR "%BOOST_ROOT%\l ib64-msvc-14.1" && `
42+ SETX PATH "%BOOST_LIBRARYDIR%;%PATH%"
4343
4444# Install chocolatey
4545RUN @"%SystemRoot%\S ystem32\W indowsPowerShell\v 1.0\p owershell.exe" `
4646 -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command `
47- "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" `
47+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" `
4848 && SETX PATH "%PATH%;%ALLUSERSPROFILE%\c hocolatey\b in"
4949
5050# Install winflexbison (for the thrift compiler build)
@@ -57,34 +57,40 @@ RUN choco install 7zip curl -y
5757COPY appveyor\b uild-libevent.bat C:\T EMP\b uild-libevent.bat
5858ENV LIBEVENT_VERSION=2.1.8
5959ENV WIN3P=C:\T EMP\W IN3P
60- RUN C:\B uildTools\C ommon7\T ools\V sDevCmd.bat -arch=amd64 && `
60+ RUN C:\B uildTools\C ommon7\T ools\V sDevCmd.bat -arch=x64 -host_arch=x64 && `
6161 MKDIR C:\T EMP\W IN3P && `
6262 C:\T EMP\b uild-libevent.bat && `
6363 MKDIR C:\L ibraries\l ibevent-%LIBEVENT_VERSION% && `
6464 MOVE C:\T EMP\W IN3P\l ibevent-%LIBEVENT_VERSION%-stable\i nclude C:\L ibraries\l ibevent-%LIBEVENT_VERSION% && `
6565 MOVE C:\T EMP\W IN3P\l ibevent-%LIBEVENT_VERSION%-stable\l ib C:\L ibraries\l ibevent-%LIBEVENT_VERSION% && `
66- RMDIR /S /Q C:\T EMP\W IN3P
66+ RMDIR /S /Q C:\T EMP\W IN3P && `
67+ SETX LIBEVENT_ROOT "C:\L ibraries\l ibevent-%LIBEVENT_VERSION%"
6768
6869# Install zlib
6970COPY appveyor\b uild-zlib.bat C:\T EMP\b uild-zlib.bat
70- ENV ZLIB_VERSION=1.2.13
71+ ENV ZLIB_VERSION=1.3.1
7172ENV WIN3P=C:\T EMP\W IN3P
72- RUN C:\B uildTools\C ommon7\T ools\V sDevCmd.bat -arch=amd64 && `
73+ RUN C:\B uildTools\C ommon7\T ools\V sDevCmd.bat -arch=x64 -host_arch=x64 && `
7374 MKDIR C:\T EMP\W IN3P && `
7475 C:\T EMP\b uild-zlib.bat && `
7576 MOVE C:\T EMP\W IN3P\z lib-inst C:\L ibraries\z lib-%ZLIB_VERSION% && `
76- RMDIR /S /Q C:\T EMP\W IN3P
77+ RMDIR /S /Q C:\T EMP\W IN3P && `
78+ SETX ZLIB_ROOT "C:\L ibraries\z lib-%ZLIB_VERSION%" && `
79+ SETX PATH "%ZLIB_ROOT%\b in;%PATH%"
7780
78- # Install OpenSSL 1.1 .0
79- ADD http ://slproweb.com/download/Win64OpenSSL-1_1_0l .exe C:\T EMP\o penssl.exe
81+ # Install OpenSSL 3.6 .0
82+ ADD https ://slproweb.com/download/Win64OpenSSL-3_6_0 .exe C:\T EMP\o penssl.exe
8083RUN C:\T EMP\o penssl.exe /silent && `
81- DEL C:\T EMP\o penssl.exe
84+ DEL C:\T EMP\o penssl.exe && `
85+ SETX OPENSSL_ROOT "C:\O penSSL-Win64" && `
86+ SETX PATH "%OPENSSL_ROOT%\b in;%PATH%"
8287
8388# Install java
8489RUN choco install jdk8 -y
8590
8691# Install python3
8792RUN choco install python3 -y
93+ RUN pip install setuptools
8894
8995# Install Adobe Flex 4.6 SDK and set FLEX_HOME so it can be found
9096ADD http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip C:\A dobe\F lex\S DK\4 .6\S DK.zip
@@ -93,8 +99,10 @@ RUN CD C:\Adobe\Flex\SDK\4.6 && `
9399 DEL SDK.zip && `
94100 SETX FLEX_HOME "C:\A dobe\F lex\S DK\4 .6"
95101
102+ RUN choco install nodejs -y
103+
96104# Start developer command prompt with any other commands specified.
97- ENTRYPOINT C:\B uildTools\C ommon7\T ools\V sDevCmd.bat -arch=amd64 &&
105+ ENTRYPOINT C:\B uildTools\C ommon7\T ools\V sDevCmd.bat -arch=x64 -host_arch=x64 &&
98106
99107# Default to PowerShell if no other command specified.
100- CMD [ " powershell.exe" , " -NoLogo" , " -ExecutionPolicy" , " Bypass" ]
108+ CMD powershell.exe -NoLogo -ExecutionPolicy Bypass
0 commit comments