Added ebug code to docker fiiles #13

Merged
khwezi merged 1 commits from setup into master 2026-06-06 00:33:38 +02:00
3 changed files with 15 additions and 7 deletions
Showing only changes of commit e4dd946280 - Show all commits
+5 -1
View File
@@ -9,7 +9,11 @@ WORKDIR /app_source
COPY . .
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
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api"
RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build
+5 -2
View File
@@ -11,7 +11,6 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \
NUGET_XMLDOC_MODE=skip
WORKDIR /app_source
# Pull in the node runtimes for UI asset bundling
COPY --from=node /usr/local/bin/node /usr/local/bin/node
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
@@ -19,7 +18,11 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
COPY . .
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
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin"
RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build
@@ -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