From d7e8b3d62aaf3f544a336463e722554f91b09398 Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Tue, 2 Apr 2024 18:02:39 +0200 Subject: [PATCH] Java 21 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a10be02..8a74fed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use a specific version of OpenJDK based on Debian ("bullseye" in this case) -FROM --platform=$BUILDPLATFORM openjdk:22-ea-21-jdk-slim-bullseye AS builder +FROM --platform=$BUILDPLATFORM openjdk:21-jdk-bullseye AS builder # Replace 'apk' commands with 'apt-get' for Debian-based package management. # Install required packages such as 'git' and 'gradle'. Remember to update and clean up properly. @@ -12,7 +12,7 @@ COPY . . RUN ./gradlew shadowJar # Second stage: Setup the runtime container -FROM openjdk:22-ea-21-jdk-slim-bullseye +FROM openjdk:21-jdk-bullseye # Again, switch to 'apt-get' for installing 'bash'. Clean up to keep the image size down. RUN apt-get update && \