From 2dd3e95d78877bbcecc0b3785cb2e48ccc1a9856 Mon Sep 17 00:00:00 2001 From: newrain001 Date: Thu, 6 Jul 2023 08:32:36 +0000 Subject: [PATCH] ff Signed-off-by: newrain001 --- cloud/Jenkinsfile | 2 +- cloud/ruoyi-java/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/Jenkinsfile b/cloud/Jenkinsfile index 2933006..b5a7743 100644 --- a/cloud/Jenkinsfile +++ b/cloud/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { } stage('后端代码打包') { steps { - sh "mvn clean package -Dmaven.test.skip=true" + sh "mvn clean package -Dmaven.test.skip=true && cp ruoyi-admin/target/ruoyi-admin.jar cloud/ruoyi-java" echo "后端代码打包完成" } } diff --git a/cloud/ruoyi-java/Dockerfile b/cloud/ruoyi-java/Dockerfile index 8d023ca..dd33145 100644 --- a/cloud/ruoyi-java/Dockerfile +++ b/cloud/ruoyi-java/Dockerfile @@ -1,6 +1,6 @@ FROM java:8-jre-alpine -COPY ruoyi-admin/target/ruoyi-admin.jar / +COPY ruoyi-admin.jar / EXPOSE 8080