Skip to content

Commit

Permalink
bb
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjano committed Apr 26, 2024
1 parent 9807d18 commit 2d839d4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
FROM mcr.microsoft.com/windows/servercore:ltsc2022

SHELL ["powershell", "-Command"]
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference='SilentlyContinue'; $VerbosePreference = 'Continue';"]

RUN $env:starter_path = Get-Location

# download and install vs build tools needed by vcpkg
RUN Invoke-WebRequest "https://aka.ms/vs/17/release/vs_buildtools.exe" \
-OutFile "$env:TEMP\vs_buildtools.exe" -UseBasicParsing
RUN Start-Process -FilePath "$env:TEMP\vs_buildtools.exe" \
-ArgumentList "--wait", "--quiet", "--nocache", "--norestart", "--noUpdateInstaller", \
"--add", "Microsoft.VisualStudio.Workload.VCTools", "--includeRecommended" -Wait
-ArgumentList "--wait", "--nocache", "--norestart", "--noUpdateInstaller", \
"--add", "Microsoft.VisualStudio.Workload.VCTools", \
"--includeRecommended" \
-Wait

# install vcpkg
# RUN $env:VCPKG_INSTALL_DIR="c:\\vcpkg"
RUN $env:VCPKG_DEFAULT_TRIPLET="x64-windows"
# RUN $env:VCPKG_DEFAULT_TRIPLET="x64-windows"
RUN git clone https://github.com/microsoft/vcpkg c:\vcpkg && \
cd c:\vcpkg && \
bootstrap-vcpkg.bat -disableMetrics && \
.\vcpkg install cgal boost-program-options boost-timer boost-test
.\vcpkg install cgal boost-program-options boost-timer boost-test --triplet x64-windows

# build sfcgal
RUN cd $env:starter_path && \
Expand Down

0 comments on commit 2d839d4

Please sign in to comment.