From 88f800ff5b2d9357c42dcee4a8db3dcbc9ce9ae7 Mon Sep 17 00:00:00 2001 From: Oscar Reimer Date: Tue, 5 Nov 2024 11:02:28 +0100 Subject: [PATCH] Install jdk instead of jre so Java resolution actually works --- build/docker/alpine.Dockerfile | 2 +- build/docker/debian.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/docker/alpine.Dockerfile b/build/docker/alpine.Dockerfile index dae8a7da..51d74ffb 100644 --- a/build/docker/alpine.Dockerfile +++ b/build/docker/alpine.Dockerfile @@ -40,7 +40,7 @@ RUN wget https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zi # g++ needed to compile python packages with C dependencies (numpy, scipy, etc.) RUN apk --no-cache --update add \ - openjdk21-jre \ + openjdk21-jdk \ python3 \ py3-scipy \ py3-pip \ diff --git a/build/docker/debian.Dockerfile b/build/docker/debian.Dockerfile index 87ba2cec..60d1cdd6 100644 --- a/build/docker/debian.Dockerfile +++ b/build/docker/debian.Dockerfile @@ -98,7 +98,7 @@ RUN apt -y update && apt -y upgrade && apt -y install \ python3.12\ python3.12-venv \ golang-$GOLANG_VERSION \ - openjdk-21-jre && \ + openjdk-21-jdk && \ apt -y clean && rm -rf /var/lib/apt/lists/* && \ # Symlink go binary to bin directory which is in path ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go