corrected csproj COPY statement in Dockerfile
This commit is contained in:
@@ -3,7 +3,8 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 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)
|
||||||
COPY *.csproj ./
|
COPY *.sln ./
|
||||||
|
COPY MyHelloWorld/*.csproj ./MyHelloWorld/
|
||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
|
||||||
# 2. Den restlichen Quellcode kopieren und die App kompilieren
|
# 2. Den restlichen Quellcode kopieren und die App kompilieren
|
||||||
|
|||||||
Reference in New Issue
Block a user