Added forced output code

This commit is contained in:
Khwezi Mngoma
2026-06-06 00:40:20 +02:00
parent e4dd946280
commit 49840847ff
3 changed files with 6 additions and 15 deletions
@@ -9,11 +9,8 @@ WORKDIR /app_source
COPY . .
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
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" > /tmp/error.txt 2>&1 || true
RUN export ERR_MSG=$(cat /tmp/error.txt | head -n 5) && false $ERR_MSG
WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity"
RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build