This commit is contained in:
2024-04-02 18:02:39 +02:00
parent 56bfdda18c
commit d7e8b3d62a

View File

@@ -1,5 +1,5 @@
# Use a specific version of OpenJDK based on Debian ("bullseye" in this case) # 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. # 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. # Install required packages such as 'git' and 'gradle'. Remember to update and clean up properly.
@@ -12,7 +12,7 @@ COPY . .
RUN ./gradlew shadowJar RUN ./gradlew shadowJar
# Second stage: Setup the runtime container # 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. # Again, switch to 'apt-get' for installing 'bash'. Clean up to keep the image size down.
RUN apt-get update && \ RUN apt-get update && \