-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile_for_gudhi_installation
54 lines (47 loc) · 1.25 KB
/
Dockerfile_for_gudhi_installation
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu:22.04
# DEBIAN_FRONTEND=noninteractive is used to prevent installation of
# package tzdata to ask for timezone
ENV DEBIAN_FRONTEND=noninteractive
# Required for Gudhi compilation
RUN apt update && apt install -y make \
g++ \
cmake \
graphviz \
perl \
texlive-bibtex-extra \
biber \
libboost-all-dev \
libeigen3-dev \
libgmp3-dev \
libmpfr-dev \
libtbb-dev \
libcgal-dev \
locales \
python3 \
python3-pip \
python3-pytest \
python3-tk \
python3-pybind11 \
libfreetype6-dev \
pkg-config \
curl
ADD install_cgal.sh /
RUN sh install_cgal.sh
RUN pip3 install \
numpy \
matplotlib \
scipy \
Cython \
POT \
scikit-learn
# apt clean up
RUN apt-get autoremove && rm -rf /var/lib/apt/lists/*
ARG GUDHI_VERSION="3.10.1"
RUN curl -LO "https://github.com/GUDHI/gudhi-devel/releases/download/tags%2Fgudhi-release-${GUDHI_VERSION}/gudhi.${GUDHI_VERSION}.tar.gz" \
&& tar xf gudhi.${GUDHI_VERSION}.tar.gz \
&& cd gudhi.${GUDHI_VERSION} \
&& mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DWITH_GUDHI_PYTHON=OFF -DPython_ADDITIONAL_VERSIONS=3 .. \
&& make all test install \
&& cmake -DWITH_GUDHI_PYTHON=ON . \
&& cd python \
&& python3 setup.py install