From 59a46e8a1fa445b947aa6007423d5dd923fe2fa8 Mon Sep 17 00:00:00 2001 From: Marek Lesko Date: Thu, 11 Jun 2026 13:11:58 +0200 Subject: [PATCH] Fix Docker build by excluding test files and using explicit project path --- Dockerfile | 4 ++-- SimpleIdp.csproj | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b7cc026..a7c1311 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ WORKDIR /src COPY . . # Restore & publish (self-contained trimming can be added later if desired) -RUN dotnet restore -RUN dotnet publish -c $BUILD_CONFIGURATION -o /app/publish --no-restore +RUN dotnet restore SimpleIdp.csproj +RUN dotnet publish SimpleIdp.csproj -c $BUILD_CONFIGURATION -o /app/publish --no-restore # ========================= # Runtime stage diff --git a/SimpleIdp.csproj b/SimpleIdp.csproj index a6e580b..fe2b7e9 100644 --- a/SimpleIdp.csproj +++ b/SimpleIdp.csproj @@ -4,6 +4,11 @@ Exe false + + + + +