Merge pull request 'Debug refactor on dockerfile' (#61) from garages3 into main
Reviewed-on: #61
This commit was merged in pull request #61.
This commit is contained in:
@@ -10,10 +10,16 @@ ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
|
||||
# Copy project files for dependency restoration
|
||||
COPY ["PostFundManagement.Api/PostFundManagement.Api.csproj", "PostFundManagement.Api/"]
|
||||
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 ["PostFundManagement.Api/PostFundManagement.Api.csproj", "PostFundManagement.Api/"]
|
||||
#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 *.sln ./
|
||||
COPY Directory.Build.* ./
|
||||
COPY Directory.Packages.* ./
|
||||
COPY global.json ./
|
||||
|
||||
# Restore dependencies
|
||||
RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj"
|
||||
@@ -22,8 +28,8 @@ RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj"
|
||||
COPY . .
|
||||
|
||||
# Force build output to standard output using the classic logger and explicit error dumping
|
||||
RUN dotnet build --tl:off /clp:NoSummary --verbosity detailed "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
#RUN dotnet build --tl:off /clp:NoSummary --verbosity detailed "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
RUN dotnet build --tl:off "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build > /tmp/build.log 2>&1 || (echo "=== BUILD FAILED! DUMPING LOGS ===" && cat /tmp/build.log && exit 1)
|
||||
|
||||
# Publish stage
|
||||
FROM build AS publish
|
||||
|
||||
Reference in New Issue
Block a user