diff --git a/docker/windows-release-builder.Dockerfile b/docker/windows-release-builder.Dockerfile index ef2b61f..0a4b1af 100644 --- a/docker/windows-release-builder.Dockerfile +++ b/docker/windows-release-builder.Dockerfile @@ -11,20 +11,13 @@ FROM mcr.microsoft.com/windows/servercore:10.0.26100.7171 SHELL ["cmd", "/S", "/C"] -RUN ` - curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe ` - ` - && (start /w vs_buildtools.exe --quiet --wait --norestart --nocache ` +RUN curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe ` + && ( start /w vs_buildtools.exe --quiet --wait --norestart --nocache ` --installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" ` --add Microsoft.VisualStudio.Workload.NativeDesktop ` - || IF "%ERRORLEVEL%"=="3010" EXIT 0) ` - ` - REM Echo any Visual Studio installer logs from %TEMP% to Docker output ` + || IF "%ERRORLEVEL%"=="3010" EXIT 0 ) ` && for %F in ("%TEMP%\dd_*.log") do @echo ===== %F ===== & type "%F" ` - ` - REM Optional: delete the logs to save space ` && del /Q "%TEMP%\dd_*.log" ` - ` && del /Q vs_buildtools.exe # Define the entry point for the docker container.