Docker 镜像(anaconda ,cmake 3.14)

FROM centos7:latest


ENV LANG=en_US.UTF-8
ARG PYINSTALL=/usr/local/python3
ENV PATH=$PYINSTALL/bin:$PATH
ARG http_proxy=http://10.49.23.161:8080
ARG https_proxy=https://10.49.23.161:8080
ARG HOST=http://10.37.2.190:9004

RUN yum -y install wget && \
cp CentOS7-Base-163.repo /etc/yum.repos.d/ && \
cd /etc/yum.repos.d/ && \
mv CentOS-Base.repo CentOS-Base.repo.bak && \
mv CentOS7-Base-163.repo CentOS-Base.repo && \
yum clean all && yum makecache && \

#安装anaconda

wget https://repo.anaconda.com/archive/Anaconda3-5.0.1-Linux-x86_64.sh -o /home/Anaconda3-5.0.1-Linux-x86_64.sh
 

#如果只是将anaconda的安装包下载下来,然后到指定的目录下面去执行,会发现以下错误

[root@7047937715f6 ]# bash Anaconda3-5.1.0-Linux-x86_64.sh
WARNING: bzip2 does not appear to be installed this may cause problems below
ERROR: size of Anaconda3-5.1.0-Linux-x86_64.sh should be    577996269 bytes

bash cuda_10.1.168_418.67_linux.run
 Failed to verify gcc version. See log at /var/log/cuda-installer.log for details.
gcc --version
yum -y install gcc gcc-c++ kernel-devel

 

 

 

 

 # 安装cmake 3.14
    wget $HOST/cmake-3.12.4-Linux-x86_64.tar.gz -O /home/cmake-3.12.4-Linux-x86_64.tar.gz &&  cd /home && \
    tar -xvf cmake-3.12.4-Linux-x86_64.tar.gz && mv cmake-3.12.4-Linux-x86_64 /opt && \
    echo 'export PATH=/opt/cmake-3.12.4-Linux-x86_64/bin:$PATH' >> /etc/profile && \

你可能感兴趣的:(docker)