forked from jbindinga/java-notebook
/
Dockerfile
47 lines (36 loc) · 1.32 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/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 \
&& curl -O https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-3_all.deb \
&& apt-get -y install ./zulu-repo_1.0.0-3_all.deb \
&& apt-get update \
&& apt-get -y install zulu17-jdk
# 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
# Install jupyter offlinenotebook
RUN pip install jupyter-offlinenotebook
# Cleanup
RUN rm ijava-kernel.zip
#
#RUN apt-get update -y \
# && apt-get install -y gcc \
# && rm -rf /var/lib/apt/lists/*
# Add README.md
ADD "README.md" $HOME
# Set user back to priviledged user.
USER $NB_USER