File: Dockerfile.debian

package info (click to toggle)
sfcgal 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,348 kB
  • sloc: cpp: 44,959; sh: 198; makefile: 33; ansic: 24; python: 23
file content (31 lines) | stat: -rw-r--r-- 850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM debian:stable-slim AS builder

WORKDIR /SFCGAL

COPY src ./src
COPY test ./test
COPY CMakeLists.txt SFCGALConfig.cmake.in sfcgal.pc.in sfcgal-config.in ci/debian/before_install.sh ./

RUN apt update -qq && \
    apt install --no-install-recommends --yes sudo wget build-essential

ARG CGAL_VERSION
RUN ./before_install.sh $CGAL_VERSION

RUN CGAL_DIR=/CGAL cmake -B build \
    -DSFCGAL_BUILD_TESTS=ON \
    -DCMAKE_C_COMPILER=/usr/bin/gcc \
    -DCMAKE_CXX_COMPILER=/usr/bin/g++ \
    -DCMAKE_BUILD_TYPE=Release && \
    cmake --build build -j$(nproc)

FROM debian:stable-slim AS run

RUN apt update -qq && \
    apt install --no-install-recommends --yes libmpfr-dev libgmp-dev libboost-serialization1.74.0

WORKDIR /SFCGAL
COPY --from=builder /SFCGAL/build /SFCGAL/build
COPY docker/entrypoint.sh /entrypoint.sh

ENTRYPOINT [ "/entrypoint.sh"]