From 765015760b353f7dc3578ac1ab684c537c1bcc42 Mon Sep 17 00:00:00 2001 From: Suren K Date: Wed, 1 Oct 2025 16:35:43 -0500 Subject: [PATCH 1/2] fix: Use correct Docker base image for Java 17 - Change from openjdk:17-jre-slim (doesn't exist) to eclipse-temurin:17-jre - Eclipse Temurin is the official OpenJDK distribution - More reliable and actively maintained - Supports both linux/amd64 and linux/arm64 platforms --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3c37701e..35557bc2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use a pre-built Java application approach -FROM openjdk:17-jre-slim +FROM eclipse-temurin:17-jre # Set working directory WORKDIR /app From 57c7e9bced9322fb1756ae22108aace52c05fb4a Mon Sep 17 00:00:00 2001 From: Suren K Date: Wed, 1 Oct 2025 16:40:48 -0500 Subject: [PATCH 2/2] focus: Build only basicauthentication example in Docker - Copy only specific basicauthentication files instead of entire project - Copy pom.xml, src/, and ui.resources/ individually - Avoid copying unnecessary project files and other examples - Faster build context and more efficient Docker layers - Focused on single example deployment --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35557bc2..5907caa8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Use a pre-built Java application approach +# Build only the basicauthentication example FROM eclipse-temurin:17-jre # Set working directory @@ -10,8 +10,10 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -# Copy the entire basicauthentication example -COPY examples/basicauthentication/ /app/ +# Copy only the basicauthentication example files +COPY examples/basicauthentication/pom.xml /app/pom.xml +COPY examples/basicauthentication/src /app/src +COPY examples/basicauthentication/ui.resources /app/ui.resources # Build the Java application (skip frontend build for now) RUN mvn clean package -DskipTests