File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
33WORKDIR /src
44
5- # Copy solution and project files
6- COPY ["MyNumberNET_ApiServer/MyNumberNET_ApiServer.csproj" , "MyNumberNET_ApiServer/" ]
5+ # Copy project files
76COPY ["MyNumberNET/MyNumberNET.csproj" , "MyNumberNET/" ]
8- COPY ["MyNumberNET.sln " , ". " ]
7+ COPY ["MyNumberNET_ApiServer/MyNumberNET_ApiServer.csproj " , "MyNumberNET_ApiServer/ " ]
98COPY ["Directory.Build.props" , "." ]
109COPY ["global.json" , "." ]
1110
1211# Restore dependencies
13- RUN dotnet restore "MyNumberNET.sln "
12+ RUN dotnet restore "MyNumberNET_ApiServer/MyNumberNET_ApiServer.csproj "
1413
15- # Copy remaining source
16- COPY . .
14+ # Copy source files
15+ COPY ["MyNumberNET/" , "MyNumberNET/" ]
16+ COPY ["MyNumberNET_ApiServer/" , "MyNumberNET_ApiServer/" ]
1717
1818# Build application
19- RUN dotnet build "MyNumberNET.sln " -c Release --no-restore
19+ RUN dotnet build "MyNumberNET_ApiServer/MyNumberNET_ApiServer.csproj " -c Release --no-restore
2020
2121# Publish application
2222RUN dotnet publish "MyNumberNET_ApiServer/MyNumberNET_ApiServer.csproj" -c Release -o /app/publish --no-build
You can’t perform that action at this time.
0 commit comments