Skip to content

.NET 8 SDK with .NET 7 runtime? #4619

Answered by mthalman
zivkan asked this question in Q&A
Discussion options

You must be logged in to vote

You can accomplish this with a one-liner in your Dockerfile:

FROM mcr.microsoft.com/dotnet/sdk:8.0-preview

# Import ASP.NET Core runtime and .NET runtime for 7.0
COPY --from=mcr.microsoft.com/dotnet/aspnet:7.0 /usr/share/dotnet/shared /usr/share/dotnet/shared

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@richlander
Comment options

Answer selected by zivkan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants