FROM maven:3.9-eclipse-temurin-17 AS build WORKDIR /build COPY . . RUN mvn -q -DskipTests package FROM eclipse-temurin:17-jre WORKDIR /app COPY --from=build /build/roncoo-education-gateway/target/*.jar /app/gateway.jar COPY --from=build /build/roncoo-education-service/roncoo-education-service-system/target/*.jar /app/system.jar COPY --from=build /build/roncoo-education-service/roncoo-education-service-course/target/*.jar /app/course.jar COPY --from=build /build/roncoo-education-service/roncoo-education-service-user/target/*.jar /app/user.jar EXPOSE 7700 7710 7720 7730 CMD ["java","-jar","/app/gateway.jar"]