WIP: 重构Docker构建流程和部署脚本

- 更新Dockerfile为多阶段构建,提升安全性和构建效率
- 重构docker-compose.yml,添加健康检查和网络配置
- 新增Docker镜像构建和推送脚本
- 修复Maven打包配置,移除不必要的配置项
- 添加.dockerignore文件优化构建上下文
- 删除旧的deploy.sh脚本
- 新增JAR部署和回滚脚本

注意:此为开发中版本,请勿部署到生产环境
This commit is contained in:
irving
2025-09-01 22:10:44 -04:00
parent b9b67dfe8b
commit 102608b85c
10 changed files with 342 additions and 39 deletions

View File

@@ -161,19 +161,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.9</version>
<configuration>
<layout>ZIP</layout>
<includes>
<include>
<groupId>nothing</groupId>
<artifactId>nothing</artifactId>
</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
<goal>repackage</goal>
</goals>
</execution>
</executions>