Created
August 21, 2019 21:31
-
-
Save Blquinn/d521cbb7aa7f442606e146c2afc8a3e3 to your computer and use it in GitHub Desktop.
XGBoost alpine dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM 'alpine' | |
WORKDIR /xgboost | |
RUN apk add --update git cmake make gfortran python3 python3-dev py-pip openblas lapack-dev libexecinfo-dev libstdc++ libgomp build-base && \ | |
python3.7 -m pip install numpy==1.15.4 scipy==1.2.0 pandas==0.23.4 scikit-learn==0.20.2 && \ | |
git clone --recursive -b release_0.90 https://github.com/dmlc/xgboost.git && \ | |
cd xgboost && \ | |
mkdir build && \ | |
cd build && \ | |
cmake .. && \ | |
make -j4 && \ | |
cd ../python-package && \ | |
python3.7 setup.py install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment