fix(docker): use service names instead of --profile flag for build

Replace --profile flags with explicit service names in build commands.
The 'docker compose build' command does not support --profile flag;
profiles are only used for runtime operations like 'up' and 'run'.

Changes:
- docker-build: specify picoclaw-agent picoclaw-gateway
- docker-build-full: specify picoclaw-agent picoclaw-gateway

Fixes: unknown flag: --profile error
This commit is contained in:
yuchou87
2026-02-16 16:02:10 +08:00
parent fcedba1c9d
commit e91e716958
+2 -2
View File
@@ -143,12 +143,12 @@ run: build
## docker-build: Build Docker image (minimal Alpine-based)
docker-build:
@echo "Building minimal Docker image (Alpine-based)..."
docker compose build --profile gateway --profile agent
docker compose build picoclaw-agent picoclaw-gateway
## docker-build-full: Build Docker image with full MCP support (Node.js 24)
docker-build-full:
@echo "Building full-featured Docker image (Node.js 24)..."
docker compose -f docker-compose.full.yml build --profile gateway --profile agent
docker compose -f docker-compose.full.yml build picoclaw-agent picoclaw-gateway
## docker-test: Test MCP tools in Docker container
docker-test: