Fix Docker build by excluding test files and using explicit project path

This commit is contained in:
Marek Lesko
2026-06-11 13:11:58 +02:00
parent b90365a2ce
commit 59a46e8a1f
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -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