File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -70,22 +70,13 @@ RUN python -m pip install --upgrade certifi setuptools; `
70
70
certutil -addstore -f ROOT certs.sst; `
71
71
del certs.sst
72
72
73
- # --- vcpkg installation ---
74
- # Clone vcpkg
75
- RUN git clone https://github.com/microsoft/vcpkg.git C:\v cpkg
76
-
77
- # Bootstrap vcpkg (disable telemetry)
78
- RUN C:\v cpkg\b ootstrap-vcpkg.bat -disableMetrics
79
-
80
- # Add vcpkg to PATH
81
- SHELL ["powershell" , "-Command" , "$ErrorActionPreference='Stop';$ProgressPreference='SilentlyContinue';" ]
82
- RUN $env:PATH += ';C:\v cpkg' ; setx /M PATH $env:PATH
83
-
84
- # Initialize VS Build Tools environment and install packages
85
- RUN powershell -NoProfile -Command `
86
- "& 'C:\P rogram Files (x86)\M icrosoft Visual Studio\2 022\B uildTools\V C\A uxiliary\B uild\v cvars64.bat'; `
87
- & 'C:\v cpkg\v cpkg.exe' install zlib:x64-windows --clean-after-build"
88
-
73
+ RUN git clone https://github.com/microsoft/vcpkg.git C:\v cpkg `
74
+ && cd C:\v cpkg `
75
+ && bootstrap-vcpkg.bat `
76
+ && SETX /M PATH "C:\v cpkg;%PATH%" `
77
+ && vcpkg install zlib:x64-windows --clean-after-build `
78
+ && vcpkg remove zlib:x64-windows
79
+
89
80
# ###############################################################################
90
81
# Entrypoint: VS Dev prompt + PowerShell
91
82
# ###############################################################################
You can’t perform that action at this time.
0 commit comments