Files
mumble-web2/docker/windows-release-builder.Dockerfile
T
restitux f2eea9c048
Build Mumble Web 2 release builder containers / windows-release-builder-container-build (push) Successful in 27s
fix logging v2
2025-12-02 16:48:57 -07:00

28 lines
1.2 KiB
Docker

# escape=`
# Use a Windows Server Core 2025 image that matches our build host.
# If the version doesn't match the build host we cannot run
# this container. I'm not sure with what specificity it has to
# match, so let's pin this and then upgrade it as we upgrade
# the host.
FROM mcr.microsoft.com/windows/servercore:10.0.26100.7171
# Restore the default Windows shell for correct batch processing.
SHELL ["cmd", "/S", "/C"]
RUN `
set LOGFILE=C:\vsinstall.log `
&& 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 `
--log "%LOGFILE%" `
|| IF "%ERRORLEVEL%"=="3010" EXIT 0) `
&& type "%LOGFILE%" `
&& del /q vs_buildtools.exe `
&& del /q "%LOGFILE%"
# Define the entry point for the docker container.
# This entry point starts the developer command prompt and launches the PowerShell shell.
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]