ci/vs2019: Add a dedicated script for entering VS dev shell
[platform/upstream/mesa.git] / .gitlab-ci / windows / Dockerfile_build
1 # escape=`
2
3 FROM mcr.microsoft.com/windows/server:ltsc2022
4
5 # https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/
6 # Wrapping the following command in cmd.exe
7 # iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"
8 RUN powershell -ExecutionPolicy RemoteSigned -Command "$ErrorActionPreference = 'Stop'; iex ""& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"""
9
10 # Make sure any failure in PowerShell scripts is fatal
11 SHELL ["pwsh", "-ExecutionPolicy", "RemoteSigned", "-Command", "$ErrorActionPreference = 'Stop';"]
12
13 COPY mesa_deps_vs2019.ps1 C:\
14 RUN C:\mesa_deps_vs2019.ps1
15 COPY mesa_vs_init.ps1 C:\
16
17 ENV VULKAN_SDK_VERSION='1.3.211.0'
18 COPY mesa_deps_build.ps1 C:\
19 RUN C:\mesa_deps_build.ps1