Docker: Use runtime-deps base image#1782
Open
anuchandy wants to merge 3 commits intomicrosoft:mainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR optimizes the Docker image size by switching the base image from aspnet:10.0-alpine to runtime-deps:10.0-alpine. Following PR #1760 which enabled self-contained trimmed binaries for Docker, this change removes the unnecessary ASP.NET runtime from the base image since all required dependencies are now included in the self-contained binary itself.
Changes:
- Switch Docker base image from
aspnet:10.0-alpinetoruntime-deps:10.0-alpine, achieving an additional ~20-25% image size reduction - Update Azure MCP Server CHANGELOG.md to document the image size improvements from the trimmed binary change
- Add changelog entry describing the Docker base image optimization
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Dockerfile | Changed base image from aspnet to runtime-deps, appropriate for self-contained binaries |
| servers/Azure.Mcp.Server/CHANGELOG.md | Updated description for PR #1760 to include image size metrics (incorrect section - should be in Unreleased) |
| servers/Azure.Mcp.Server/changelog-entries/1771625444448.yaml | Added changelog entry for the Docker base image change |
20 tasks
vukelich
approved these changes
Feb 20, 2026
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.
What does this PR do?
In this merged pr, we enabled self-contained trimmed server binary for the Docker image. The beta.21 release shows the following size savings:
This is a follow-up PR that changes the Docker base image from
aspnet:10.0-alpinetoruntime-deps:10.0-alpine. Since a self-contained trimmed binary doesn't require the fullASP.NETruntime, this change reduces the image size by an additional ~20-25%aspnetbase)runtime-depsbase, projected for upcoming release)Combining these two PRs, the overall size savings is in the range of 50-60%.
aspnetbase)runtime-depsbase, projected for upcoming release)[Any additional context, screenshots, or information that helps reviewers]GitHub issue number?
[Link to the GitHub issue this PR addresses]Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentationeng/scripts/Process-PackageReadMe.ps1. See Package README/servers/Azure.Mcp.Server/docs/azmcp-commands.mdand/or/docs/fabric-commands.md.\eng\scripts\Update-AzCommandsMetadata.ps1to update tool metadata in azmcp-commands.md (required for CI)ToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test promptsconsolidated-tools.json/servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline