Remove dependencies that are already installed in alpine base images#52481
Remove dependencies that are already installed in alpine base images#52481viktor-gustafsson wants to merge 2 commits intodotnet:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Alpine installation documentation by adjusting the stated runtime dependency list to reflect what’s presumed to be present in Alpine base images.
Changes:
- Updated
ms.dateto 03/20/2026. - Removed several packages (
ca-certificates,libgcc,libssl3, andlibstdc++) from the Alpine 3.20+ dependency list.
| ### 3.20+ | ||
|
|
||
| - ca-certificates | ||
| - libgcc | ||
| - libssl3 | ||
| - libstdc++ | ||
| - zlib (.NET 8 only) | ||
| - icu-libs and icu-data-full (unless the .NET app is running in [globalization-invariant mode](../runtime-config/globalization.md#invariant-mode)) | ||
| - tzdata |
There was a problem hiding this comment.
The dependency list under ### 3.20+ no longer includes ca-certificates, libgcc, libssl3, or libstdc++, but this page is referenced for manual installs/self-contained apps (not just the runtime-deps Docker images). On a minimal Alpine install those packages aren't guaranteed to be present, and missing libssl3/C++ runtime libs can prevent dotnet from starting or break TLS. Please restore these packages in the list, or explicitly scope the guidance to the official .NET Alpine base images and add a separate note for bare Alpine installs.
Summary
I noticed that the list of Alpine dependencies is inaccurate, these packages:
They are already installed in the base images here
https://github.com/dotnet/dotnet-docker/tree/main/src/runtime-deps/8.0/alpine3.23
https://github.com/dotnet/dotnet-docker/tree/main/src/runtime-deps/9.0/alpine3.23
https://github.com/dotnet/dotnet-docker/tree/main/src/runtime-deps/10.0/alpine3.23
https://github.com/dotnet/dotnet-docker/tree/main/src/runtime-deps/11.0/alpine3.23
Describe your changes here.
Update Alpine dependency list based on which packages are installed in the alpine base images for dotnet 8, 9, 10 and 11
Internal previews