changed Dockerfile From statements to mcr.
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:07:17 +02:00
parent 4e9042c386
commit 10c5b522d2

View File

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