changed Dockerfile FROM Statements again
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:15:18 +02:00
parent 10c5b522d2
commit bce0feb57f

View File

@@ -1,5 +1,5 @@
# --- Stage 1: Build (Die Bau-Umgebung) ---
FROM mcr.microsoft.com AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app
# 1. Nur Projektdatei kopieren und Abhängigkeiten laden (Nutzt Docker-Caching)
@@ -11,7 +11,7 @@ COPY . ./
RUN dotnet publish -c Release -o out
# --- Stage 2: Runtime (Das fertige, schlanke Image) ---
FROM mcr.microsoft.com
FROM ://microsoft.com
WORKDIR /app
# 3. Den vorinstallierten User 'app' von Microsoft nutzen