forked from lebalz/dokku-jupyterhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 1.29 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
FROM jupyter/minimal-notebook:latest
LABEL maintainer="hfr"
LABEL version="0.1.1"
LABEL description="Jupyter Notebook image"
# all additional pip packages
RUN pip3 install --no-cache \
jupyterhub==1.4.1 \
smartphone-connector==0.0.115 \
notebook==6.3.0 \
playsound==1.2.2 \
numpy==1.20.3 \
gTTs==2.2.2 \
jupyterlab-drawio==0.9.0 \
Pillow==8.2.0 \
XlsxWriter==1.4.3 \
pandas==1.2.4 \
xlrd==2.0.1 \
openpyxl==3.0.7 \
ipywidgets==7.6.3 \
ipympl==0.7.0 \
jupyterlab-spellchecker==0.5.2 \
aquirdturtle_collapsible_headings==3.0.1
# modify the playsound and gtts package to work on jupyter
COPY playsound_extension.py .
COPY gtts_extension.py .
# check where to put the overrides file within a jupyterlab container:
# jupyter lab path
COPY overrides.json /opt/conda/share/jupyter/lab/settings/
# the following command returns the install location of the given pip package
# `python3 -c "import playsound as _; print(_.__file__)"`
# `tee -a` appends the piped output of the `cat` command to the specified file
RUN cat playsound_extension.py | tee -a $(dirname "$(python3 -c "import playsound as _; print(_.__file__)")")/playsound.py
RUN cat gtts_extension.py | tee -a $(dirname "$(python3 -c "import gtts as _; print(_.__file__)")")/tts.py