missing-dockerignore-causes-repo-bloat-in-mcp-images
MCP server Docker images built with COPY . . and no .dockerignore bake in all repo content including documentation assets, benchmarks, and demo projects. This is a common pattern in MCP server repos pulled from GitHub. Always verify .dockerignore exists before building; add exclusions for assets/, *.md heavy dirs, benchmark suites, and showcase examples to keep images lean.
Related
- openspace-mcp-upstream-repo-ships-64mb-non-runtime-bloat
- openspace-mcp-upstream-repo-bloat-no-dockerignore
- openspace-mcp-assets-dir-53mb-runtime-unused
- openspace-mcp-123mb-is-98pct-upstream-demo-bloat
- n8n-god-agent-mcp-rebuild-v5
- excalidraw-location-mcp-servers-not-infra
- excalidraw-mcp-lives-at-opt-mcp-servers-not-opt-infra