@@ -3,4 +3,4 @@ FROM java:8
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
COPY ./target/persagy-sync-data.jar persagy-sync-data.jar
ENTRYPOINT ["java", "-jar", "/persagy-sync-data.jar"]
-EXPOSE 9980
+EXPOSE 9803
@@ -43,7 +43,7 @@ pipeline { //pipeline 顶层
steps {
sh 'chmod -R +x ./$DEPLOY_FILE_PATH/'
sh 'rm -rf ./$DEPLOY_FILE_PATH/*.jar && cp ./target/*.jar ./$DEPLOY_FILE_PATH'
- sh 'docker build -f ./Dockerfile --build-arg WORKER_HOME=$WORKER_HOME -t $DOCKER_IMAGE ./$DEPLOY_FILE_PATH'
+ sh 'docker build -f ./$DEPLOY_FILE_PATH/Dockerfile --build-arg WORKER_HOME=$WORKER_HOME -t $DOCKER_IMAGE ./$DEPLOY_FILE_PATH'
}
//部署流程四:项目推送到本地私有仓库