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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user