feat: add multi-stage Dockerfile for full build with martial-tool

- Add Dockerfile.fullbuild: multi-stage build that compiles martial-tool
- Rename Dockerfile to Dockerfile.quick for quick builds (pre-built jar)
- Update docker-compose.yml to use parent directory context
- Update README with new deployment instructions
This commit is contained in:
2025-12-29 14:34:54 +08:00
parent 47d0b70a9c
commit 86e4580e5d
4 changed files with 81 additions and 18 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
# MySQL 数据库
mysql:
@@ -84,11 +82,11 @@ services:
networks:
- martial-network
# 后端应用
# 后端应用(完整构建模式)
martial-api:
build:
context: .
dockerfile: Dockerfile
context: ..
dockerfile: martial-master/Dockerfile.fullbuild
container_name: martial-api
restart: always
environment: