-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 800 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 800 Bytes
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
FROM jupyter/minimal-notebook:6cc4a8596a0b
USER root
# dependencies
RUN apt-get update
RUN apt-get install -y openjdk-18-jdk maven
# ijava kernel
WORKDIR /app
RUN git clone --branch try-upgrade-gradle --depth 1 https://github.com/hanslovsky/Jupyter-kernel-installer-gradle.git
RUN git clone --depth 1 https://github.com/hanslovsky/IJava.git
WORKDIR /app/Jupyter-kernel-installer-gradle
RUN ./gradlew publishToMavenLocal
WORKDIR /app/IJava
RUN ./gradlew installKernel
# cleanup etc.
RUN rm -rf /app
# user name and ID comes from base container
# for Binder and Fastpages, wants the content repo in $HOME, which we'll test here,
# even though this repo is just the Dockerfile
ENV HOME /home/${NB_USER}
COPY . ${HOME}
RUN chown -R ${NB_UID}:${NB_GID} ${HOME}
WORKDIR ${HOME}
USER ${NB_USER}