diff --git a/Dockerfile b/Dockerfile index e20063f..94e1d07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ COPY . . WORKDIR "/app_source" RUN dotnet build "PostFundManagement.slnx" -c Release 1>&2 +FROM build AS publish WORKDIR "/app_source/PostFundManagement.Api" RUN dotnet publish "PostFundManagement.Api.csproj" -c Release --no-restore -o /app/publish @@ -23,4 +24,4 @@ FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true -ENTRYPOINT ["dotnet", "PostFundManagement.Api.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "PostFundManagement.Api.dll"]