代码拉取完成,页面将自动刷新
同步操作将从 若依/RuoYi-Vue 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM maven:3.6.3-jdk-8 AS build
#copy .m2 /root/.m2/
#WORKDIR /usr/src/app
copy . /usr/src/app/
#run ls /root/.m2/
#run ls /usr/src/app/
#RUN --mount=type=cache,target=/home/opc/.m2 mvn -f pom.xml mvn clean install
RUN mvn -f /usr/src/app/pom.xml clean install
FROM maven:3.6.3-jdk-8
#FROM openjdk:8-slim
#COPY --from=build /usr/src/app/target/*.jar app.jar
COPY --from=build /usr/src/app/. /app/
#COPY --from=build /usr/src/app/ruoyi-admin/target/* /app/ruoyi-admin/target/
#COPY --from=build /usr/src/app/ruoyi-common/target/* /app/ruoyi-common/target/
#COPY --from=build /usr/src/app/ruoyi-framework/target/* /app/ruoyi-framework/target/
#COPY --from=build /usr/src/app/ruoyi-generator/target/* /app/ruoyi-generator/target/
#COPY --from=build /usr/src/app/ruoyi-quartz/target/* /app/ruoyi-quartz/target/
#COPY --from=build /usr/src/app/ruoyi-ruoyi-system/target/*.jar app5.jar
#若亦有路径问题
#COPY --from=build /usr/src/app/ruoyi-admin/target/*.jar ruoyi-admin.jar
#COPY --from=build /usr/src/app/ruoyi-common/target/*.jar ruoyi-common.jar
#COPY --from=build /usr/src/app/ruoyi-framework/target/*.jar ruoyi-framework.jar
#COPY --from=build /usr/src/app/ruoyi-generator/target/*.jar ruoyi-generator.jar
#COPY --from=build /usr/src/app/ruoyi-quartz/target/*.jar ruoyi-quartz.jar
#run ls /app/
WORKDIR /app
ENTRYPOINT ["java", "-XshowSettings:128m", "-XX:NativeMemoryTracking=off", "-jar", "/app/ruoyi-admin/target/ruoyi-admin.jar"]
#ENTRYPOINT ["java", "-XshowSettings:vm", "-XX:NativeMemoryTracking=summary", "-jar", "app.jar"]
EXPOSE 8080
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。