fix: Docker-SDK-Image auf global.json-Version pinnen
docker compose Build schlug bei Dokploy fehl: "A compatible .NET SDK was not found". global.json pinnt exakt 10.0.301 mit rollForward: latestPatch (erlaubt nur neuere Patches im selben Feature-Band), der treibende Tag mcr.microsoft.com/dotnet/sdk:10.0 zeigte inzwischen aber auf 10.0.400 (neues Feature-Band) - latestPatch lehnt das ab. Build-Stage in Dockerfile.api auf den exakten Tag 10.0.301 gepinnt, TODO.md 10.2.4 um den Vorfall ergänzt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
|
||||
WORKDIR /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
# Muss exakt zu global.json (rollForward: latestPatch) passen - der treibende ":10.0"-Tag zeigt
|
||||
# irgendwann auf ein neueres Feature-Band (z.B. 10.0.400), das latestPatch nicht akzeptiert und
|
||||
# den Build mit "A compatible .NET SDK was not found" abbrechen lässt.
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0.301 AS build
|
||||
WORKDIR /src
|
||||
COPY ["LehrerApp.Api/LehrerApp.Api.csproj", "LehrerApp.Api/"]
|
||||
COPY ["LehrerApp.Sync/LehrerApp.Sync.csproj", "LehrerApp.Sync/"]
|
||||
|
||||
Reference in New Issue
Block a user