From 3336915a3ec68dfdf66b0eacec319ffe2e47fbc2 Mon Sep 17 00:00:00 2001 From: guo <1716967236@qq.com> Date: Sun, 26 Oct 2025 15:00:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(N/A):=20=E8=B0=83=E6=95=B4=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E5=86=85=E8=BF=90=E8=A1=8C=E7=AB=AF=E5=8F=A3=E4=B8=BA?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=9A=848888=EF=BC=8C=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=B8=80=E4=B8=AAdockerfile=EF=BC=8C?= =?UTF-8?q?=E5=B0=B1=E5=8F=AF=E4=BB=A5=E9=85=8D=E7=BD=AE=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E7=9A=84=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- Jenkinsfile | 2 +- Jenkinsfile-dev | 2 +- src/main/resources/application-dev.yml | 2 +- src/main/resources/application-prod.yml | 2 +- src/main/resources/application-uat.yml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7844a1f..80992d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ WORKDIR /app COPY target/LPT.jar LPT.jar # 暴露应用运行的端口 -EXPOSE 5157 +EXPOSE 8888 # 启动应用 ENTRYPOINT ["java", "-jar", "LPT.jar"] # 健康检查 -HEALTHCHECK --interval=10s --timeout=5s CMD curl --fail http://localhost:5157/actuator/health || exit 1 +HEALTHCHECK --interval=10s --timeout=5s CMD curl --fail http://localhost:8888/actuator/health || exit 1 diff --git a/Jenkinsfile b/Jenkinsfile index 8927ebd..92f742e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { IMAGE_NAME = 'lpt-prod:0.0' CONTAINER_NAME = 'LPT-prod' HOST_PORT = '5157' - CONTAINER_PORT = '5157' + CONTAINER_PORT = '8888' } stages { stage('Build') { diff --git a/Jenkinsfile-dev b/Jenkinsfile-dev index ed6cd13..4b826fa 100644 --- a/Jenkinsfile-dev +++ b/Jenkinsfile-dev @@ -4,7 +4,7 @@ pipeline { IMAGE_NAME = 'lpt-dev:0.0' CONTAINER_NAME = 'LPT-dev' HOST_PORT = '5155' - CONTAINER_PORT = '5155' + CONTAINER_PORT = '8888' } stages { stage('Build') { diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index d66d8a6..aea6a3a 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -6,7 +6,7 @@ spring: username: root password: GUOxy5157 server: - port: 5155 + port: 8888 cors: allowCredentials: true diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 4555500..31c650a 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -6,7 +6,7 @@ spring: username: root password: GUOxy.5157 server: - port: 5157 + port: 8888 cors: allowed-origins: diff --git a/src/main/resources/application-uat.yml b/src/main/resources/application-uat.yml index 3e28ea1..e440077 100644 --- a/src/main/resources/application-uat.yml +++ b/src/main/resources/application-uat.yml @@ -6,7 +6,7 @@ spring: username: root password: GUOxy5157 server: - port: 5156 + port: 8888 cors: allowed-origins: