Fixed publish alias
This commit is contained in:
+2
-1
@@ -16,6 +16,7 @@ COPY . .
|
|||||||
WORKDIR "/app_source"
|
WORKDIR "/app_source"
|
||||||
RUN dotnet build "PostFundManagement.slnx" -c Release 1>&2
|
RUN dotnet build "PostFundManagement.slnx" -c Release 1>&2
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
WORKDIR "/app_source/PostFundManagement.Api"
|
WORKDIR "/app_source/PostFundManagement.Api"
|
||||||
RUN dotnet publish "PostFundManagement.Api.csproj" -c Release --no-restore -o /app/publish
|
RUN dotnet publish "PostFundManagement.Api.csproj" -c Release --no-restore -o /app/publish
|
||||||
|
|
||||||
@@ -23,4 +24,4 @@ FROM base AS final
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
||||||
ENTRYPOINT ["dotnet", "PostFundManagement.Api.dll"]
|
ENTRYPOINT ["dotnet", "PostFundManagement.Api.dll"]
|
||||||
|
|||||||
Reference in New Issue
Block a user