From e964d70f518274b9f7c1ea6106f372dfd7ad042d Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 20 Mar 2020 12:24:01 +0800 Subject: [PATCH] add gpu-devel dockerfile --- tools/Dockerfile.gpu.devel | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tools/Dockerfile.gpu.devel diff --git a/tools/Dockerfile.gpu.devel b/tools/Dockerfile.gpu.devel new file mode 100644 index 00000000..a2233908 --- /dev/null +++ b/tools/Dockerfile.gpu.devel @@ -0,0 +1,23 @@ +FROM nvidia/cuda:9.0-cudnn7-devel-centos7 + +RUN yum -y install wget >/dev/null \ + && yum -y install gcc gcc-c++ make glibc-static which >/dev/null \ + && yum -y install git openssl-devel curl-devel bzip2-devel python-devel >/dev/null \ + && wget https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz >/dev/null \ + && 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 >/dev/null \ + && 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 >/dev/null \ + && 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 \ + && rm get-pip.py \ + && yum -y install epel-release && yum -y install patchelf \ + && yum clean all -- GitLab