Add Docker support and expand README installation options#5
Open
mattpodwysocki wants to merge 2 commits intomainfrom
Open
Add Docker support and expand README installation options#5mattpodwysocki wants to merge 2 commits intomainfrom
mattpodwysocki wants to merge 2 commits intomainfrom
Conversation
- Add Dockerfile (multi-stage, node:22-slim, non-root user) - Add .dockerignore - README: add hosted, npx, Docker, and local installation sections Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Dockerfile: set HUSKY=0 in both builder and runtime stages - prepare script: skip husky/setup-hooks when HUSKY=0 or CI is set - build-helpers.cjs: gracefully handle missing git (returns 'unknown') - .dockerignore: restore .husky (needed during build), keep .git excluded Verified: docker build succeeds and tools/list returns correct response. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dockerfile(multi-stage build,node:22-slim, non-root user) — verified working with a livetools/listsmoke test.dockerignorepreparescript to skip husky whenHUSKY=0orCIis set (required for Docker builds where there's no.git)build-helpers.cjsto gracefully handle missing git — returns'unknown'for sha/tag/branch instead of crashingTest plan
docker build -t mapbox/mcp-docs-server .succeedsecho '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | docker run --rm -i mapbox/mcp-docs-serverreturns tool listnpm run buildstill works locally (prepare script still runs husky in non-CI environments)🤖 Generated with Claude Code