Use ENTRYPOINT + CMD pattern in Dockerfile#63
Merged
Conversation
Split the CMD into ENTRYPOINT for the binary and CMD for default arguments. This follows Docker conventions and allows orchestrators like the Docker MCP Registry to override just the arguments without repeating the binary name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MCP-V8 Load Test Benchmark ReportComparison of single-node vs 3-node cluster at various request rates. Results
P95 Latency
Notes
|
Now that the Dockerfile uses ENTRYPOINT for the binary, the compose command sections only need arguments. Also switch docker-compose.yml from pre-built image to build: . so CI tests the actual Dockerfile. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The tmpfs mount at /data defaults to root ownership, but the container runs as mcpuser (uid 1000). Set uid=1000,gid=1000 on the tmpfs mount so heap snapshots can be written. Co-Authored-By: Claude Opus 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
CMD ["mcp-v8", "--sse-port", "8080", "--stateless"]intoENTRYPOINT ["mcp-v8"]+CMD ["--sse-port", "8080", "--stateless"]--stateless(stdio transport) for tool discoveryContext
The Docker MCP Registry (
docker/mcp-registry) expects servers to use ENTRYPOINT for the binary so it can override just the arguments viarun.commandinserver.yaml. Without this, the registry entry has to include the binary name in the command list, which is non-standard.No behavior change for existing users —
docker runworks the same way. The only difference is thatdocker run <image> --statelessnow works without repeatingmcp-v8.🤖 Generated with Claude Code