1 Star 0 Fork 27.2K

wangmt2000/RuoYi-Vue

forked from 若依/RuoYi-Vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
wangmt2000 提交于 2021-03-09 11:55 . k
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wangmt2000/RuoYi-Vue.git
git@gitee.com:wangmt2000/RuoYi-Vue.git
wangmt2000
RuoYi-Vue
RuoYi-Vue
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385