Skip to content

fix: use COPY --from for mcp-gateway in template stage#3744

Merged
dgageot merged 1 commit into
mainfrom
fix/template-mcp-gateway
Jul 19, 2026
Merged

fix: use COPY --from for mcp-gateway in template stage#3744
dgageot merged 1 commit into
mainfrom
fix/template-mcp-gateway

Conversation

@aheritier

Copy link
Copy Markdown
Contributor

The template Docker build stage fetched the latest docker-mcp binary via an unauthenticated GitHub API call, which hit rate limits (HTTP 403) on shared CI runners:

curl -fsSL "https://api.github.com/repos/docker/mcp-gateway/releases?per_page=1"

The arm64 runner passed because it uses a different IP pool; the amd64 runner hit the 60 req/hr unauthenticated limit.

Fix: replace the 8-line RUN curl | grep | tar block with a single COPY --from=docker/mcp-gateway:v2 instruction — the same pattern already used by the final MCP container stage of the same Dockerfile. No GitHub API calls, no rate-limit exposure.

Fixes the flaky CI failure observed on PR #3741.

@aheritier
aheritier requested a review from a team as a code owner July 19, 2026 10:15
@aheritier aheritier added area/mcp MCP protocol, MCP tool servers, integration kind/fix PR fixes a bug (maps to fix:). Use on PRs only. labels Jul 19, 2026
@dgageot
dgageot merged commit 4993783 into main Jul 19, 2026
20 checks passed
@dgageot
dgageot deleted the fix/template-mcp-gateway branch July 19, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/mcp MCP protocol, MCP tool servers, integration kind/fix PR fixes a bug (maps to fix:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants