Skip to content

Commit c03f6bd

Browse files
committed
Improve order in Dockerfile
1 parent ec93ffe commit c03f6bd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

template/Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM python:3.10.14
22

33
ENV JAVA_HOME=/opt/java/openjdk
4-
COPY --from=eclipse-temurin:11-jdk $JAVA_HOME $JAVA_HOME
54
ENV PATH="${JAVA_HOME}/bin:${PATH}"
65

76
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
@@ -23,11 +22,6 @@ RUN apt-get update && apt-get install -y r-base
2322
RUN R -e "install.packages('IRkernel')"
2423
RUN R -e "IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')"
2524

26-
# Java Kernel
27-
RUN wget https://github.com/SpencerPark/IJava/releases/download/v1.3.0/ijava-1.3.0.zip && \
28-
unzip ijava-1.3.0.zip && \
29-
python install.py --sys-prefix
30-
3125
# Javascript Kernel
3226
RUN npm install -g node-gyp
3327
RUN npm install -g --unsafe-perm ijavascript
@@ -58,5 +52,12 @@ COPY ipython_kernel_config.py $IPYTHON_CONFIG_PATH/profile_default/
5852
RUN mkdir -p $IPYTHON_CONFIG_PATH/profile_default/startup
5953
COPY startup_scripts/* $IPYTHON_CONFIG_PATH/profile_default/startup
6054

55+
56+
COPY --from=eclipse-temurin:11-jdk $JAVA_HOME $JAVA_HOME
57+
# Java Kernel
58+
RUN wget https://github.com/SpencerPark/IJava/releases/download/v1.3.0/ijava-1.3.0.zip && \
59+
unzip ijava-1.3.0.zip && \
60+
python install.py --sys-prefix
61+
6162
# Setup entrypoint for local development
6263
ENTRYPOINT $JUPYTER_CONFIG_PATH/start-up.sh

0 commit comments

Comments
 (0)