Dockerfile.cli
Rama main · réplica de lectura del repositorio original.
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY src/ ./
RUN dotnet restore Relego.Cli/Relego.Cli.csproj
RUN dotnet publish Relego.Cli/Relego.Cli.csproj \
--configuration Release \
--output /out \
--no-restore
FROM mcr.microsoft.com/dotnet/runtime:10.0 AS runtime
WORKDIR /app
COPY --from=build /out/ ./
ENTRYPOINT ["dotnet", "Relego.Cli.dll"]