Added ebug code to docker fiiles

This commit is contained in:
Khwezi Mngoma
2026-06-06 00:33:13 +02:00
parent d80c1eab81
commit e4dd946280
3 changed files with 15 additions and 7 deletions
@@ -7,13 +7,14 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG TARGETARCH
WORKDIR /app_source
# Copy everything from repository root into /app_source
COPY . .
# Restore the solution from the root context
RUN --network=host dotnet restore "LiteCharmsSecurity.sln"
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true
RUN cat /tmp/restore_error.log
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
# Paths match your repository exactly now: src/ is just under the root
WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity"
RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build