github.com/kubeflow/training-operator@v1.7.0/examples/xgboost/smoke-dist/Dockerfile (about)

     1  # Install python 3.6
     2  FROM python:3.6
     3  
     4  RUN apt-get update
     5  RUN apt-get install -y git make g++ cmake
     6  
     7  RUN mkdir -p /opt/mlkube
     8  
     9  # Download the rabit tracker and xgboost code.
    10  
    11  COPY tracker.py /opt/mlkube/
    12  COPY requirements.txt /opt/mlkube/
    13  
    14  # Install requirements
    15  
    16  RUN pip install -r /opt/mlkube/requirements.txt
    17  
    18  # Build XGBoost.
    19  RUN git clone --recursive https://github.com/dmlc/xgboost && \
    20      cd xgboost && \
    21      make -j$(nproc) && \
    22      cd python-package; python setup.py install
    23  
    24  COPY xgboost_smoke_test.py /opt/mlkube/
    25  
    26  ENTRYPOINT ["python", "/opt/mlkube/xgboost_smoke_test.py"]