forked from GUDHI/gudhi-devel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_for_pip
50 lines (42 loc) · 1.68 KB
/
Dockerfile_for_pip
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
FROM quay.io/pypa/manylinux2014_x86_64
RUN yum -y update && yum -y install \
wget \
zlib-devel \
eigen3-devel \
mpfr-devel \
gmp-devel \
devtoolset-8 \
&& yum clean all
RUN mkdir -p /opt/cmake \
&& wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.sh \
&& sh cmake-3.16.2-Linux-x86_64.sh --skip-license --prefix=/opt/cmake \
&& rm -f cmake-3.16.2-Linux-x86_64.sh
# yum install boost-devel installs boost 1.53 and copy is the only way to install headers only boost
RUN wget https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.gz \
&& tar xf boost_1_73_0.tar.gz \
&& cd boost_1_73_0 \
&& ./bootstrap.sh \
&& ls \
&& cp -r boost /usr/local/include/ \
&& cd .. \
&& rm -rf boost
RUN wget https://github.com/CGAL/cgal/releases/download/v5.1/CGAL-5.1.tar.xz \
&& tar xf CGAL-5.1.tar.xz \
&& mkdir build \
&& cd build \
&& /opt/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Release ../CGAL-5.1/ \
&& make install \
&& cd .. \
&& rm -rf build CGAL-5.1
ADD .github/build-requirements.txt /
RUN /opt/python/cp35-cp35m/bin/pip install -r build-requirements.txt \
&& /opt/python/cp36-cp36m/bin/pip install -r build-requirements.txt\
&& /opt/python/cp37-cp37m/bin/pip install -r build-requirements.txt\
&& /opt/python/cp38-cp38/bin/pip install -r build-requirements.txt\
&& /opt/python/cp38-cp38/bin/pip install twine
ENV PYTHON35="/opt/python/cp35-cp35m/"
ENV PYTHON36="/opt/python/cp36-cp36m/"
ENV PYTHON37="/opt/python/cp37-cp37m/"
ENV PYTHON38="/opt/python/cp38-cp38/"
ENV PATH="/opt/cmake/bin:${PATH}"
ENV PATH="/opt/rh/devtoolset-8/root/usr/bin:${PATH}"