corrected csproj COPY statement in Dockerfile
Some checks failed
Tests / Declarative: Post Actions passed: 1
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-06 13:32:35 +02:00
parent 08a3edaef2
commit ad354bbeaf

View File

@@ -3,7 +3,8 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app
# 1. Nur Projektdatei kopieren und Abhängigkeiten laden (Nutzt Docker-Caching)
COPY *.csproj ./
COPY *.sln ./
COPY MyHelloWorld/*.csproj ./MyHelloWorld/
RUN dotnet restore
# 2. Den restlichen Quellcode kopieren und die App kompilieren