File: Dockerfile.windows

package info (click to toggle)
sfcgal 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 15,084 kB
  • sloc: cpp: 37,122; sh: 141; makefile: 33; python: 22
file content (18 lines) | stat: -rw-r--r-- 603 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use sfcgal dependencies images
FROM sfcgal/sfcgal-build-deps:windows-latest

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

WORKDIR "c:\SFCGAL"
COPY . ./

RUN cmake -S . -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DSFCGAL_BUILD_TESTS=OFF \
    -DCMAKE_TOOLCHAIN_FILE="\"$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake\""; \
    cmake --build build --config Release

# Restore the default Windows shell for correct batch processing.
SHELL ["cmd", "/S", "/C"]

ENTRYPOINT ["powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]