diff --git a/Dockerfile b/Dockerfile index 3c37701e..5907caa8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -# Use a pre-built Java application approach -FROM openjdk:17-jre-slim +# Build only the basicauthentication example +FROM eclipse-temurin:17-jre # Set working directory WORKDIR /app @@ -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