-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
94 lines (89 loc) · 3.57 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM nvidia/cuda:latest
# To automatically save a jupyter notebook as a python file
# ADD dockerfiles/jupyter_notebook_config.py /root/.jupyter/
ENV PATH="/opt/conda/bin:${PATH}"
# anaconda
RUN apt-get update && \
apt-get -y install wget && \
echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/archive/Anaconda3-4.4.0-Linux-x86_64.sh -O ~/anaconda.sh && \
/bin/bash ~/anaconda.sh -b -p /opt/conda && \
rm ~/anaconda.sh && \
/opt/conda/bin/conda install -y jupyter && \
# jupyter nbextensions
conda install -c conda-forge jupyter_contrib_nbextensions && \
conda install -c conda-forge jupyter_nbextensions_configurator && \
# jupyter code_prettify
pip install yapf && jupyter nbextension enable code_prettify/code_prettify && \
# table of content
jupyter nbextension enable toc2/main && \
pip install kaggle && \
pip install -U kaggle-cli && \
pip install praw && \
pip install -U bcolz && \
pip install --upgrade gensim && \
pip install --upgrade keras-tqdm && \
apt-get update && \
apt-get install -y git && \
apt-get install -y bzip2 && \
apt-get install -y unzip && \
apt-get install -y p7zip-full && \
conda install -c anaconda joblib && \
conda install -c conda-forge imageio && \
# tensorflow
conda install -c anaconda tensorflow-gpu && \
conda update tensorflow-gpu && \
# https://stackoverflow.com/questions/45952387/anaconda-install-of-tensorflow-missing-audio-ops-from-contrib-framework
pip install tf-nightly && \
# theano
conda install theano pygpu && \
# xgboost
apt-get install -y git && \
apt-get install -y cmake && \
cd /usr/local/src && mkdir xgboost && cd xgboost && \
git clone --depth 1 --recursive https://github.com/dmlc/xgboost.git && cd xgboost && \
mkdir build && \
cd build && \
cmake .. -DUSE_CUDA=ON && \
make -j && \
cd ../python-package && python setup.py install && \
conda install libgcc && \
# bazel
apt-get clean && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -f && \
apt-get install -y --fix-missing openjdk-8-jdk && \
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list && \
curl https://bazel.build/bazel-release.pub.gpg | apt-key add - && \
apt-get update && apt-get install -y bazel && \
apt-get upgrade -y bazel && \
# opencv
pip install opencv-python && \
apt-get install -y libsm6 && \
apt-get install -y libxext6 && \
apt-get install -y libxrender1 && \
apt-get install -y libfontconfig1 && \
# https://askubuntu.com/questions/917030/how-to-install-pydot-and-graphviz
apt-get update && \
apt-get install -y --fix-missing python-pydot python-pydot-ng graphviz && \
conda install -c anaconda pydot && \
# ffmpeg
apt-get clean && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -f && \
apt-get install -y --fix-missing software-properties-common python-software-properties && \
add-apt-repository ppa:mc3man/trusty-media && \
apt-get install -y ffmpeg && \
apt-get install -y frei0r-plugins && \
pip install graphviz && \
pip install sklearn_pandas && \
pip install isoweek && \
pip install pandas_summary && \
# pytorch
# conda install pytorch torchvision cuda80 -c soumith && \
conda install -y pytorch torchvision -c pytorch && \
# keras
pip install -U keras && \
apt-get install -y imagemagick