/
Dockerfile
37 lines (28 loc) · 1.08 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
FROM jupyter/minimal-notebook
LABEL maintainer="Jeffrey Bindinga <jeffrey.bindinga@gmail.com>"
USER root
# Install dependencies
RUN apt-get update && apt-get install -y \
software-properties-common \
curl
# Install Zulu OpenJdk 11 (LTS)
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 \
&& apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main' \
&& apt install -y zulu-11
# Unpack and install the kernel
RUN curl -L https://github.com/SpencerPark/IJava/releases/download/v1.3.0/ijava-1.3.0.zip > ijava-kernel.zip
RUN unzip ijava-kernel.zip -d ijava-kernel \
&& cd ijava-kernel \
&& python3 install.py --sys-prefix
# Install jupyter RISE extension.
RUN pip install jupyter_contrib-nbextensions RISE \
&& jupyter-nbextension install rise --py --system \
&& jupyter-nbextension enable rise --py --system \
&& jupyter contrib nbextension install --system \
&& jupyter nbextension enable hide_input/main
# Cleanup
RUN rm ijava-kernel.zip
# Add README.md
ADD "README.md" $HOME
# Set user back to priviledged user.
USER $NB_USER