fix: Docker 生产部署构建上下文 — 统一 Dockerfile 从仓库根复制 shared pkg
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+15
-5
@@ -29,7 +29,9 @@ services:
|
||||
# ========== 后端服务 ==========
|
||||
gateway:
|
||||
container_name: cyrene_gateway
|
||||
build: ./backend/gateway
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./backend/gateway/Dockerfile
|
||||
environment:
|
||||
GATEWAY_PORT: "8080"
|
||||
ENV: production
|
||||
@@ -56,7 +58,9 @@ services:
|
||||
|
||||
ai-core:
|
||||
container_name: cyrene_ai_core
|
||||
build: ./backend/ai-core
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./backend/ai-core/Dockerfile
|
||||
environment:
|
||||
AI_CORE_PORT: "8081"
|
||||
PERSONA_DIR: "./internal/persona"
|
||||
@@ -77,7 +81,9 @@ services:
|
||||
|
||||
memory-service:
|
||||
container_name: cyrene_memory_service
|
||||
build: ./backend/memory-service
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./backend/memory-service/Dockerfile
|
||||
environment:
|
||||
PORT: "8091"
|
||||
POSTGRES_HOST: postgres
|
||||
@@ -92,7 +98,9 @@ services:
|
||||
|
||||
voice-service:
|
||||
container_name: cyrene_voice_service
|
||||
build: ./backend/voice-service
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./backend/voice-service/Dockerfile
|
||||
environment:
|
||||
PORT: "8093"
|
||||
WHISPER_BINARY: "./whisper.cpp/main"
|
||||
@@ -102,7 +110,9 @@ services:
|
||||
|
||||
iot-debug-service:
|
||||
container_name: cyrene_iot_debug_service
|
||||
build: ./backend/iot-debug-service
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./backend/iot-debug-service/Dockerfile
|
||||
environment:
|
||||
IOT_DEBUG_PORT: "8083"
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user