Files
the-cycle/Dockerfile
T
neckfireandClaude Opus 4.8 2630a9f2af
Build & Deploy / build (push) Failing after 12s
ci: build serveur API depuis les sources + déploiement registry (prod/preprod)
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>
2026-07-13 02:33:04 +02:00

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"]