Build & Deploy / build (push) Successful in 8s
Le code sélectionne la saison via #if SEASON_2_RELEASE ; sans cette config le build échoue (#error Unsupported build type). Build validé en local. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
660 B
Docker
16 lines
660 B
Docker
# The Cycle: Frontier — serveur API (émulateur Prospect), build depuis les sources.
|
|
# Multi-stage : SDK .NET 8 pour publier le projet API → runtime aspnet 8.
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
WORKDIR /src
|
|
COPY src/ ./src/
|
|
# Configuration "Season 2 Release" = build qui correspond au client S2 déployé
|
|
# (le code sélectionne la saison via des #if SEASON_2_RELEASE / SEASON_3_RELEASE).
|
|
RUN dotnet publish src/Prospect.Server.Api/Prospect.Server.Api.csproj \
|
|
-c "Season 2 Release" -o /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
|
WORKDIR /app
|
|
COPY --from=build /app ./
|
|
EXPOSE 8443 8000
|
|
ENTRYPOINT ["dotnet", "Prospect.Server.Api.dll"]
|