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
E