File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1- # Use the .NET 9.0 ASP.NET runtime as the base image
2- FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
1+ # Pin the .NET 10 runtime/SDK (nightly until GA) so restore supports net10.0
2+ ARG DOTNET_VERSION=10.0
3+
4+ # Use the .NET 10 ASP.NET runtime as the base image
5+ FROM mcr.microsoft.com/dotnet/nightly/aspnet:${DOTNET_VERSION} AS base
36WORKDIR /app
47EXPOSE 80
58EXPOSE 443
69
7- # Use the .NET 9.0 SDK image for building the application
8- FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
10+ # Use the .NET 10 SDK image for building the application
11+ FROM mcr.microsoft.com/dotnet/nightly/ sdk:${DOTNET_VERSION} AS build
912WORKDIR /src
1013
1114# Set shell options for better error handling
Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 8.*"
3+ "version" : " 10.*" ,
4+ "allowPrerelease" : true
45 }
56}
Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 8.*"
3+ "version" : " 10.*" ,
4+ "allowPrerelease" : true
45 }
56}
You can’t perform that action at this time.
0 commit comments