Dockerfile.cuda10.0-cudnn7.devel 1.6 KB
Newer Older
B
barriery 已提交
1
FROM nvidia/cuda:10.0-cudnn7-devel-centos7
B
barrierye 已提交
2

Y
Your Name 已提交
3
RUN yum -y install wget >/dev/null \
G
gongweibao 已提交
4
    && yum -y install gcc gcc-c++ make glibc-static which  \
B
barrierye 已提交
5 6 7
    && 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 已提交
8
    && yum -y install libXext-1.3.3-3.el7.x86_64 --setopt=protected_multilib=false
G
gongweibao 已提交
9 10

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

G
gongweibao 已提交
23
RUN yum -y install python-devel sqlite-devel  \
Y
Your Name 已提交
24 25 26
    && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py >/dev/null \
    && python get-pip.py >/dev/null \
    && pip install google protobuf setuptools wheel flask >/dev/null \
G
gongweibao 已提交
27 28 29
    && rm get-pip.py 

RUN yum install -y python3 python3-devel \
B
barrierye 已提交
30
    && pip3 install google protobuf setuptools wheel flask \
M
MRXLT 已提交
31
    && yum -y install epel-release && yum -y install patchelf libXext libSM libXrender\
G
gongweibao 已提交
32 33 34
    && yum clean all 

RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8 \
35
    && echo "export LANG=en_US.utf8" >> /root/.bashrc