Document scenario for SDK image with multiple runtime versions
Open
area-documentation
up-for-grabs
- Dominant language
- Dockerfile
- Stars
- 4.9k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 26
Description
There's been some interest in having an SDK image that contains multiple runtime versions. Examples: https://github.com/dotnet/dotnet-docker/issues/4160, https://github.com/dotnet/dotnet-docker/issues/2048. While this isn't something that we're likely to provide, we can document this scenario with guidance on how to configure a Dockerfile that satisfies this need.
For Linux, this would look something like this:
```Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:7.0
COPY --from=mcr.microsoft.com/dotnet/aspnet:6.0 /usr/share/dotnet/shared /usr/share/dotnet/shared
```
Contributor guide
Assessment
This issue has not been assessed yet.