Dockerfile.centos6.cuda9.0-cudnn7.devel 2.5 KB
Newer Older
B
barrierye 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
FROM nvidia/cuda:9.0-cudnn7-devel-centos6

RUN yum -y install wget && \
    wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtoolset-2.repo && \
    yum -y install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils && \
    source /opt/rh/devtoolset-2/enable && \
    echo 'source /opt/rh/devtoolset-2/enable' >> /root/.bashrc && \
    yum -y install git openssl-devel curl-devel bzip2-devel && \
    wget https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz && \
    tar xzf cmake-3.2.0-Linux-x86_64.tar.gz && \
    mv cmake-3.2.0-Linux-x86_64 /usr/local/cmake3.2.0 && \
    echo 'export PATH=/usr/local/cmake3.2.0/bin:$PATH' >> /root/.bashrc && \
    rm cmake-3.2.0-Linux-x86_64.tar.gz && \
    wget https://dl.google.com/go/go1.14.linux-amd64.tar.gz && \
    tar xzf go1.14.linux-amd64.tar.gz && \
    mv go /usr/local/go && \
    echo 'export GOROOT=/usr/local/go' >> /root/.bashrc && \
    echo 'export PATH=/usr/local/go/bin:$PATH' >> /root/.bashrc && \
    rm go1.14.linux-amd64.tar.gz && \
    yum -y install python-devel sqlite-devel && \
    wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz && \
    tar -zxf Python-2.7.5.tgz && \
    cd Python-2.7.5 && \
M
MRXLT 已提交
24
    ./configure --prefix=/usr/local/python2.7 --enable-shared --enable-unicode=ucs4 && \
B
barrierye 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
    make all && make install && \
    make clean && \
    echo 'export PATH=/usr/local/python2.7/bin:$PATH' >> /root/.bashrc && \
    echo 'export LD_LIBRARY_PATH=/usr/local/python2.7/lib:$LD_LIBRARY_PATH' >> /root/.bashrc && \
    cd .. && rm -rf Python-2.7.5* && \
    source /root/.bashrc && \
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
    python get-pip.py && \
    rm get-pip.py && \
    wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz && \
    tar -zxf Python-3.6.8.tgz && \
    cd Python-3.6.8 && \
    ./configure --prefix=/usr/local/python3.6 --enable-shared && \
    make all && make install && \
    make clean && \
    echo 'export PATH=/usr/local/python3.6/bin:$PATH' >> /root/.bashrc && \
    echo 'export LD_LIBRARY_PATH=/usr/local/python3.6/lib:$LD_LIBRARY_PATH' >> /root/.bashrc && \
M
MRXLT 已提交
42 43
    pip install requests && \
    pip3 install requests && \
B
barrierye 已提交
44 45
    source /root/.bashrc && \
    cd .. && rm -rf Python-3.6.8* && \
M
MRXLT 已提交
46
    yum -y install epel-release && yum -y install patchelf libXext libSM libXrender && \
47
    yum clean all && \
M
MRXLT 已提交
48 49
    echo "export LANG=en_US.utf8" >> /root/.bashrc && \
    echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc