forked from maxGimeno/cgal-python-wheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 1.32 KB
/
Dockerfile
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
FROM quay.io/pypa/manylinux2014_x86_64:latest
RUN yum -y update; yum clean all
RUN yum -y install epel-release.noarch; yum clean all
RUN yum -y update; yum -y install \
curl \
eigen3-devel.noarch \
metis-devel \
gmp-devel.x86_64 \
mpfr-devel.x86_64 \
tar \
python3-devel.x86_64 \
swig3.x86_64 \
zlib-devel.x86_64; yum clean all
RUN curl -s -SL "https://github.com/oneapi-src/oneTBB/releases/download/2019_U9/tbb2019_20191006oss_lin.tgz" | tar xz && \
cd tbb2019_20191006oss && cp -r include/tbb /usr/include && cp lib/intel64/gcc4.8/* /usr/lib64 && \
rm -rf tbb2019_20191006oss
RUN cd /tmp && curl -s -SL "https://github.com/CGAL/LAStools/archive/master.zip" -o laslib.zip && unzip laslib.zip && \
cd LAStools-master && \
mkdir build && cd build && \
cmake .. && make -j 6 && make install && cd / && rm -rf /tmp/LAStools-master
RUN curl -s -SL "https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz" | tar xz -C /tmp && \
cd /tmp/boost_1_84_0 && \
./bootstrap.sh --prefix=/usr/local --with-libraries=system,filesystem,program_options,iostreams,serialization && \
./b2 -j 6 install && cd / && rm -rf /tmp/boost_1_84_0
RUN pip3 install wheel auditwheel
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]