-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.Windows
More file actions
10 lines (8 loc) · 984 Bytes
/
Dockerfile.Windows
File metadata and controls
10 lines (8 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
FROM mcr.microsoft.com/windows/servercore:ltsc2022
SHELL ["powershell", "-command"]
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iwr https://community.chocolatey.org/install.ps1 -UseBasicParsing | iex
RUN choco install visualstudio2019-workload-vctools git cmake -q -y
RUN $newPath=(('C:\Program Files\Git\bin', 'C:\Program Files\CMake\bin') + ([Environment]::GetEnvironmentVariable('Path', 'Machine') -split ';')) -join ';'; [Environment]::SetEnvironmentVariable('Path', $newPath, 'Machine'); [Environment]::SetEnvironmentVariable('VCPKG_DEFAULT_TRIPLET', 'x64-windows', 'Machine')
RUN git clone https://github.com/microsoft/vcpkg; .\vcpkg\bootstrap-vcpkg.bat; .\vcpkg\vcpkg install armadillo gsl openblas[threads] catch2
RUN rm -Recurse C:\vcpkg\buildtrees; rm -Recurse C:\vcpkg\downloads; rm -Recurse C:\vcpkg\packages
ENTRYPOINT powershell.exe