FROM eclipse-temurin:21 WORKDIR /app COPY pom.xml . COPY .mvn/ .mvn/ COPY mvnw . RUN ./mvnw dependency:go-offline -Pdependencies COPY src/ src/ EXPOSE 8080 CMD exec ./mvnw -o spring-boot:run -Dspring-boot.run.profiles=docker