backend: microservices-oriented architecture, clean-architecture design pattern, spring-boot, spring cloud gateway, spring cloud eureka et spring cloud config. - frontend: angular, observer rxjs

Dockerfile 563B

12345678910111213141516
  1. FROM maven:3.8.3-openjdk-17-slim AS builder
  2. WORKDIR /build/
  3. COPY pom.xml /build/
  4. COPY src /build/src
  5. RUN mvn package -DskipTest
  6. WORKDIR /build/target/
  7. RUN java -Djarmode=layertools -jar backend-frontend-gateway-service.jar extract
  8. FROM maven:3.8.3-openjdk-17-slim
  9. COPY --from=builder /build/target/dependencies/ ./
  10. COPY --from=builder /build/target/spring-boot-loader/ ./
  11. COPY --from=builder /build/target/snapshot-dependencies/ ./
  12. COPY --from=builder /build/target/application/ ./
  13. EXPOSE 8281
  14. ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]

Powered by TurnKey Linux.