Dockerfile.cuda9.0-cudnn7.devel 1.9 KB
Newer Older
Y
Your Name 已提交
1 2
FROM nvidia/cuda:9.0-cudnn7-devel-centos7
RUN yum -y install wget >/dev/null \
G
gongweibao 已提交
3
    && yum -y install gcc gcc-c++ make glibc-static which  \
B
barrierye 已提交
4 5 6
    && yum -y install git openssl-devel curl-devel bzip2-devel python-devel \
    && yum -y install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false \
    && yum -y install libXrender-0.9.10-1.el7.x86_64 --setopt=protected_multilib=false \
B
barrierye 已提交
7
    && yum -y install libXext-1.3.3-3.el7.x86_64 --setopt=protected_multilib=false
G
gongweibao 已提交
8

M
MRXLT 已提交
9 10 11 12 13 14 15
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.11.2/protobuf-all-3.11.2.tar.gz && \
    tar zxf protobuf-all-3.11.2.tar.gz && \
    cd protobuf-3.11.2 && \
    ./configure && make -j4 && make install && \
    make clean && \
    cd .. && rm -rf protobuf-*

G
gongweibao 已提交
16
RUN wget https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz >/dev/null \
Y
Your Name 已提交
17 18 19
    && 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 \
G
gongweibao 已提交
20 21 22
    && rm cmake-3.2.0-Linux-x86_64.tar.gz 

RUN wget https://dl.google.com/go/go1.14.linux-amd64.tar.gz >/dev/null \
Y
Your Name 已提交
23 24 25 26
    && 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 \
G
gongweibao 已提交
27 28
    && rm go1.14.linux-amd64.tar.gz 

G
gongweibao 已提交
29
RUN yum -y install python-devel sqlite-devel  \
Y
Your Name 已提交
30 31
    && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py >/dev/null \
    && python get-pip.py >/dev/null \
32 33
    && rm get-pip.py \
    && pip install requests
G
gongweibao 已提交
34 35

RUN yum install -y python3 python3-devel \
M
MRXLT 已提交
36
    && yum -y install epel-release && yum -y install patchelf libXext libSM libXrender\
37 38
    && yum clean all \
    && pip3 install requests
G
gongweibao 已提交
39 40

RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8 \
M
MRXLT 已提交
41 42
    && echo "export LANG=en_US.utf8" >> /root/.bashrc \
    && echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc