-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.jupyter
32 lines (28 loc) · 1013 Bytes
/
Dockerfile.jupyter
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
FROM jupyter/base-notebook
USER root
# 必要なパッケージを記載
RUN apt-get update && apt-get install --no-install-recommends -y \
wget git curl file \
&& apt-get autoremove -y \
&& apt clean
# mecab関係のインストール
RUN apt-get install -y mecab mecab-ipadic-utf8 libmecab-dev
# Python必要なモジュールのインストール
RUN pip install --upgrade setuptools
ADD requirements.txt ./tmp/requirements.txt
RUN pip install -r ./tmp/requirements.txt
RUN cp /etc/mecabrc /usr/local/etc/
# install jupyterlab & extentions
RUN pip install --upgrade --no-cache-dir \
'jupyterlab~=3.0' \
jupyterlab_code_formatter \
jupyterlab_theme_solarized_dark \
jupyterlab-lsp \
yapf \
'python-lsp-server[all]' \
&& rm -rf ~/.cache/pip \
RUN jupyter labextension install \
@ryantam626/jupyterlab_code_formatter \
@jupyterlab/toc \
@AllanChain/jupyterlab-theme-solarized-dark \
&& jupyter serverextension enable --py jupyterlab_code_formatter