forked from rafael-ladislau/mybinder-class
/
Dockerfile
22 lines (19 loc) · 924 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM jupyter/scipy-notebook:7a0c7325e470
USER root
RUN apt-get update && \
apt-get install -y gnupg
RUN wget -O /tmp/YANDEX-DISK-KEY.GPG http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG && \
apt-key add /tmp/YANDEX-DISK-KEY.GPG
RUN echo "deb http://repo.yandex.ru/yandex-disk/deb/ stable main" >> /etc/apt/sources.list.d/yandex-disk.list
RUN apt-get update && \
apt-get install -y yandex-disk && \
apt-get clean
USER $NB_USER
# https://plotly.com/python/getting-started/#jupyterlab-support
# https://jcristharif.com/conda-docker-tips.html#step-2-cleanup-after-a-conda-install-633-mb
RUN conda install -y nltk plotly python-graphviz && \
conda clean -afy
# https://jupyter-docker-stacks.readthedocs.io/en/latest/using/recipes.html#using-pip-install-or-conda-install-in-a-child-docker-image
RUN fix-permissions $CONDA_DIR
RUN jupyter labextension install jupyterlab-plotly
RUN fix-permissions /home/$NB_USER