Skip to content

Commit 0ba0810

Browse files
committed
update Dockerfile to use patched kernel.json
1 parent 89171d4 commit 0ba0810

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ USER root
1515
# Download the kernel release
1616
RUN curl -L https://github.com/SpencerPark/IJava/releases/download/v1.3.0/ijava-1.3.0.zip > ijava-kernel.zip
1717

18-
# Unpack and install the kernel
18+
# Unpack, patch kernel.json and install the kernel
1919
RUN unzip ijava-kernel.zip -d ijava-kernel \
20+
&& cp kernel.json ijava-kernel \
2021
&& cd ijava-kernel \
2122
&& python3 install.py --sys-prefix
2223

@@ -37,6 +38,7 @@ RUN chown -R $NB_UID $HOME
3738
USER $NB_USER
3839

3940
# Launch the notebook server
41+
ENV IJAVA_COMPILER_OPTS "--enable-preview --source=15"
4042
WORKDIR $HOME
4143
CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
4244

0 commit comments

Comments
 (0)