From e107378eab65581a7e81f63b6166d3141963a21f Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Mon, 7 Aug 2023 09:48:56 +0800 Subject: [PATCH] [TOREE-538] Properly set java on docker image to support ARM platform (#203) --- Dockerfile.toree-dev | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.toree-dev b/Dockerfile.toree-dev index 16778a1e..4dad9171 100644 --- a/Dockerfile.toree-dev +++ b/Dockerfile.toree-dev @@ -30,7 +30,8 @@ RUN apt-get -y update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ update-ca-certificates -f && \ - update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java + JAVA_8=`update-alternatives --list java | grep java-8-openjdk` && \ + update-alternatives --set java $JAVA_8 # Installing Spark3 RUN cd /tmp && \