forked from ParrotPrediction/docker-course-xgboost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (26 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (c) Parrot Prediction Ltd.
# Distributed under the terms of the Modified BSD License.
FROM jupyter/minimal-notebook
MAINTAINER Parrot Prediction <contact@parrotprediction.com>
USER root
# libav-tools for matplotlib anim
RUN apt-get update && \
apt-get install -y --no-install-recommends libav-tools git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER jovyan
# Install Python 3 packages
RUN conda install --quiet --yes \
'pandas=0.17*' \
'matplotlib=1.5*' \
'seaborn=0.7*' \
'graphviz=2.38.*' \
'scikit-learn=0.17*'
# Add shortcuts to distinguish pip for python2 and python3 envs
RUN ln -s $CONDA_DIR/envs/python2/bin/pip $CONDA_DIR/bin/pip2 && \
ln -s $CONDA_DIR/bin/pip $CONDA_DIR/bin/pip3
# Install XGBoost library
RUN git clone --recursive https://github.com/dmlc/xgboost && \
cd xgboost && \
make -j4 && \
cd python-package; python setup.py install