Build & Deploy / build (push) Failing after 12s
Dockerfile multi-stage (SDK 8 publish → aspnet 8) et workflow Gitea Actions : main → :latest (prod), preprod → :preprod. Base = tag b8 (état déployé). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
569 B
Docker
15 lines
569 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/
|
|
RUN dotnet restore src/Prospect.Server.Api/Prospect.Server.Api.csproj \
|
|
&& dotnet publish src/Prospect.Server.Api/Prospect.Server.Api.csproj \
|
|
-c Release -o /app --no-restore
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
|
WORKDIR /app
|
|
COPY --from=build /app ./
|
|
EXPOSE 8443 8000
|
|
ENTRYPOINT ["dotnet", "Prospect.Server.Api.dll"]
|