Loading Dockerfile 0 → 100644 +16 −0 Original line number Diff line number Diff line # Build the JAR FROM eclipse-temurin:21-jdk-jammy AS build WORKDIR /app COPY . . RUN ./mvnw clean package # Run the JAR FROM eclipse-temurin:21-jre-jammy RUN adduser --system --no-create-home springuser USER springuser WORKDIR /app COPY --from=build /app/target/book-store-0.0.1-SNAPSHOT.jar app.jar EXPOSE 8080 ENTRYPOINT ["java", "-jar", "app.jar"] No newline at end of file Loading
Dockerfile 0 → 100644 +16 −0 Original line number Diff line number Diff line # Build the JAR FROM eclipse-temurin:21-jdk-jammy AS build WORKDIR /app COPY . . RUN ./mvnw clean package # Run the JAR FROM eclipse-temurin:21-jre-jammy RUN adduser --system --no-create-home springuser USER springuser WORKDIR /app COPY --from=build /app/target/book-store-0.0.1-SNAPSHOT.jar app.jar EXPOSE 8080 ENTRYPOINT ["java", "-jar", "app.jar"] No newline at end of file