feat: Add context7-mcp with custom Dockerfile
- Create dockerfiles/context7/Dockerfile for monorepo build - Update docker-compose.yml to use custom Dockerfile context - Build approach: copy all source, then pnpm install workspaces, then build:mcp - Requires UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN env vars - Follows AGENTS.md guidelines for Dockerfile management Note: Monorepo structure requires full source copy before dependency resolution to properly install workspace dependencies across packages/mcp, packages/sdk, etc.
This commit is contained in:
@@ -144,13 +144,12 @@ services:
|
||||
context7-mcp:
|
||||
build:
|
||||
context: ./vendor/context7
|
||||
dockerfile: Dockerfile
|
||||
dockerfile: ../../dockerfiles/context7/Dockerfile
|
||||
container_name: KNELDevStack-AIMiddleware-context7-mcp
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- UPSTASH_REDIS_REST_URL=${UPSTASH_REDIS_REST_URL}
|
||||
- UPSTASH_REDIS_REST_TOKEN=${UPSTASH_REDIS_REST_TOKEN}
|
||||
command: ["node", "packages/mcp/dist/index.js", "--transport", "stdio"]
|
||||
profiles:
|
||||
- dev
|
||||
|
||||
|
||||
Reference in New Issue
Block a user