需要一个miniconda3的环境和jdk8用来运行h2o服务。

    所以准备这样一个环境,以下是Dockerfile

    # base image
    
    FROM centos:7.3.1611
    
    LABEL  version="1.0"
    
    LABEL  auth="eric"
    
    RUN yum update -y && \
    
     yum install -y wget java-1.8.0-openjdk.x86_64
    
    # install env
    
    RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.7.12-Linux-x86_64.sh -O ~/miniconda.sh && \
    
     /bin/bash ~/miniconda.sh -b -p /opt/conda && \
    
     rm ~/miniconda.sh && \
    
     /opt/conda/bin/conda clean -tipsy && \
    
     ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
    
     echo  ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
    
     echo "conda activate base" >> ~/.bashrc && \
    
     find /opt/conda/ -follow -type f -name '*.a' -delete && \
    
     find /opt/conda/ -follow -type f -name '*.js.map' -delete && \
    
     /opt/conda/bin/conda clean -afy
    
    ENV PATH /opt/conda/bin:$PATH
    
    # update profile
    
    CMD [ "/bin/bash" ]