# Use pinned Maven image with SAPMachine JDK 25 FROM maven:3.9.14-sapmachine-25 AS build WORKDIR /workspace # Copy project files and build all modules COPY . . RUN mvn -B -DskipTests install # Runtime image FROM maven:3.9.14-sapmachine-25 WORKDIR /workspace # Copy the built artifacts from the builder stage COPY --from=build /workspace /workspace # Keep the container interactive with a shell; adjust as needed for actual runtime CMD ["bash"]