changed Dockerfile FROM Statements again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user