/
Dockerfile
47 lines (39 loc) · 1.27 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
FROM jupyter/datascience-notebook
USER root
RUN pip install jupyterlab==1.0
RUN pip install japanize-matplotlib
# decisionTree
RUN pip install pydotplus
RUN pip install dtreeviz
RUN apt-get dist-upgrade
RUN apt-get update
RUN apt-get install -y build-essential graphviz-dev graphviz pkg-config
RUN pip install graphviz
RUN jupyter serverextension enable --py jupyterlab
RUN jupyter labextension install jupyterlab_vim
# nbextension
RUN pip install jupyter-contrib-nbextensions
RUN pip install jupyter-nbextensions-configurator
RUN jupyter contrib nbextension install --user
RUN jupyter nbextensions_configurator enable --user
# CausalImpact
RUN pip install pycausalimpact
# Text
RUN pip install wordcloud
RUN pip install mecab-python3==0.996.5
RUN apt-get update \
&& apt-get install -y mecab \
&& apt-get install -y mecab-ipadic \
&& apt-get install -y libmecab-dev \
&& apt-get install -y mecab-ipadic-utf8 \
&& apt-get install -y swig \
&& apt-get install -y file
RUN git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git \
&& cd mecab-ipadic-neologd \
&& bin/install-mecab-ipadic-neologd -n -y
# SpreadSheet
RUN pip install gspread
RUN pip install oauth2client
EXPOSE 10000
CMD ["bash"]
#CMD ["jupyter lab --port 10000 --allow-root"]