Merge pull request 'Fixed Api docker file paths' (#54) from garages3 into main
Reviewed-on: #54
This commit was merged in pull request #54.
This commit is contained in:
@@ -15,20 +15,19 @@ COPY ["PostFundManagement.Application/PostFundManagement.Application.csproj", "P
|
|||||||
COPY ["PostFundManagement.Domain/PostFundManagement.Domain.csproj", "PostFundManagement.Domain/"]
|
COPY ["PostFundManagement.Domain/PostFundManagement.Domain.csproj", "PostFundManagement.Domain/"]
|
||||||
COPY ["PostFundManagement.Infrastructure/PostFundManagement.Infrastructure.csproj", "PostFundManagement.Infrastructure/"]
|
COPY ["PostFundManagement.Infrastructure/PostFundManagement.Infrastructure.csproj", "PostFundManagement.Infrastructure/"]
|
||||||
|
|
||||||
# Restore dependencies with normal verbosity to stderr/stdout
|
# Restore dependencies
|
||||||
RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj" -v n 2>&1
|
RUN dotnet restore "PostFundManagement.Api/PostFundManagement.Api.csproj" -v n 2>&1
|
||||||
|
|
||||||
# Copy full source tree
|
# Copy full source tree
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the API project with stderr output
|
# Build the API project from /src root context
|
||||||
WORKDIR "/src/PostFundManagement.Api"
|
RUN dotnet build "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build -v n 2>&1
|
||||||
RUN dotnet build "PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build -v n 2>&1
|
|
||||||
|
|
||||||
# Publish stage
|
# Publish stage
|
||||||
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 -v n 2>&1
|
RUN dotnet publish "PostFundManagement.Api/PostFundManagement.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false -v n 2>&1
|
||||||
|
|
||||||
# Final runtime stage
|
# Final runtime stage
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
|
|||||||
Reference in New Issue
Block a user