roncoo-education/Dockerfile
zheyun d0be008a1d
All checks were successful
build-push / build (push) Successful in 21m29s
add Dockerfile
2026-11-02 22:14:10 +08:00

13 lines
614 B
Docker

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"]