diff --git a/projects/spring-boot/Dockerfile b/projects/spring-boot/Dockerfile index 4cb3d863c..478299507 100644 --- a/projects/spring-boot/Dockerfile +++ b/projects/spring-boot/Dockerfile @@ -25,6 +25,7 @@ RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus && \ rm -rf go-fuzz-corpus ARG java_home="/out/open-jdk-17" +RUN mkdir -p $JAVA_HOME RUN apt update && apt install -y openjdk-17-jdk ENV JAVA_HOME $java_home diff --git a/projects/spring-boot/build.sh b/projects/spring-boot/build.sh index 6e9b2d2d8..323a4a1fd 100755 --- a/projects/spring-boot/build.sh +++ b/projects/spring-boot/build.sh @@ -17,7 +17,7 @@ mv $SRC/{*.zip,*.dict} $OUT -cp -r "/usr/lib/jvm/java-17-openjdk-amd64/" "$JAVA_HOME" +cp -r "/usr/lib/jvm/java-17-openjdk-amd64/." "$JAVA_HOME" CURRENT_VERSION=$(./gradlew properties --no-daemon --console=plain | sed -nr "s/^version:\ (.*)/\1/p")