- 更新Dockerfile - 整合数据库SQL文件为martial_db.sql - 添加docker-compose.yml - 清理临时SQL脚本 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,15 +1,3 @@
|
||||
# 多阶段构建:编译阶段
|
||||
FROM maven:3.9-eclipse-temurin-17 AS builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# 复制主项目源码
|
||||
COPY pom.xml .
|
||||
COPY src ./src
|
||||
|
||||
# 编译项目(在 Drone 中已经编译好,这里只是复制)
|
||||
RUN mkdir -p target
|
||||
|
||||
# 运行阶段:使用轻量级 JRE 镜像
|
||||
FROM eclipse-temurin:17-jre-jammy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user