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