github.com/kubeflow/training-operator@v1.7.0/examples/xgboost/xgboost-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 requirements.txt /opt/mlkube/ 12 13 # Install requirements 14 15 RUN pip install -r /opt/mlkube/requirements.txt 16 17 # Build XGBoost. 18 RUN git clone --recursive https://github.com/dmlc/xgboost && \ 19 cd xgboost && \ 20 make -j$(nproc) && \ 21 cd python-package; python setup.py install 22 23 COPY *.py /opt/mlkube/ 24 25 ENTRYPOINT ["python", "/opt/mlkube/main.py"]