-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
30 lines (23 loc) · 1.15 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
FROM centos:centos6
MAINTAINER Artem Tarasov <[email protected]>
WORKDIR /root
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN yum -y update && yum -y install zlib-static libxml2-static libxml2-devel make cmake git wget autoconf automake unzip && yum clean all
# install modern g++
RUN yum -y install centos-release-scl
RUN yum -y install devtoolset-6-gcc devtoolset-6-binutils devtoolset-6-gcc-c++ && yum clean all
RUN /usr/bin/scl enable devtoolset-6 true
ENV CC=/opt/rh/devtoolset-6/root/usr/bin/gcc
ENV CXX=/opt/rh/devtoolset-6/root/usr/bin/g++
# let's link to liblzma statically
RUN curl -OL http://tukaani.org/xz/xz-5.2.2.tar.gz &&\
tar xzf xz-5.2.2.tar.gz &&\
cd xz-5.2.2 &&\
./configure CFLAGS='-fPIC -O2 -mtune=generic' && make && make install
# install conda
RUN wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh &&\
bash Miniconda-latest-Linux-x86_64.sh -b -p /miniconda &&\
rm Miniconda-latest-Linux-x86_64.sh
ENV PATH /miniconda/bin:/opt/rh/devtoolset-6/root/usr/bin:$PATH
RUN conda create -y -n py3 python=3 cffi; source activate py3; pip install auditwheel pypatchelf
RUN conda create -y -n py2 python=2 cffi