Debugs refactor
This commit is contained in:
@@ -6,7 +6,6 @@ EXPOSE 8080
|
|||||||
|
|
||||||
# Stage 2: Build & Restore
|
# Stage 2: Build & Restore
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy csproj files for layer caching
|
# Copy csproj files for layer caching
|
||||||
@@ -23,12 +22,12 @@ COPY . .
|
|||||||
|
|
||||||
# Build from the project folder using relative filename
|
# Build from the project folder using relative filename
|
||||||
WORKDIR "/src/PostFundManagement.Api"
|
WORKDIR "/src/PostFundManagement.Api"
|
||||||
RUN dotnet build "PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
RUN dotnet build "PostFundManagement.Api.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
# Stage 3: Publish
|
# Stage 3: Publish
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
RUN dotnet publish "PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "PostFundManagement.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
# Stage 4: Final Runtime
|
# Stage 4: Final Runtime
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
|
|||||||
Reference in New Issue
Block a user