Fixed missing file copy
This commit is contained in:
@@ -9,17 +9,14 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy project files for dependency restoration
|
# Copy the solution file first
|
||||||
#COPY ["PostFundManagement.Api/PostFundManagement.Api.csproj", "PostFundManagement.Api/"]
|
COPY "PostFundManagement.sln" ./
|
||||||
#COPY ["PostFundManagement.Application/PostFundManagement.Application.csproj", "PostFundManagement.Application/"]
|
|
||||||
#COPY ["PostFundManagement.Domain/PostFundManagement.Domain.csproj", "PostFundManagement.Domain/"]
|
|
||||||
#COPY ["PostFundManagement.Infrastructure/PostFundManagement.Infrastructure.csproj", "PostFundManagement.Infrastructure/"]
|
|
||||||
|
|
||||||
# Copy solution structures and global props first
|
# Copy project files for dependency restoration
|
||||||
COPY *.sln ./
|
COPY ["PostFundManagement.Api/PostFundManagement.Api.csproj", "PostFundManagement.Api/"]
|
||||||
COPY Directory.Build.* ./
|
COPY ["PostFundManagement.Application/PostFundManagement.Application.csproj", "PostFundManagement.Application/"]
|
||||||
COPY Directory.Packages.* ./
|
COPY ["PostFundManagement.Domain/PostFundManagement.Domain.csproj", "PostFundManagement.Domain/"]
|
||||||
COPY global.json ./
|
COPY ["PostFundManagement.Infrastructure/PostFundManagement.Infrastructure.csproj", "PostFundManagement.Infrastructure/"]
|
||||||
|
|
||||||
# Restore dependencies
|
# Restore dependencies
|
||||||
RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj"
|
RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj"
|
||||||
|
|||||||
Reference in New Issue
Block a user