Skip to content

Instantly share code, notes, and snippets.

@Blquinn
Created August 21, 2019 21:31
Show Gist options
  • Save Blquinn/d521cbb7aa7f442606e146c2afc8a3e3 to your computer and use it in GitHub Desktop.
Save Blquinn/d521cbb7aa7f442606e146c2afc8a3e3 to your computer and use it in GitHub Desktop.
XGBoost alpine dockerfile
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