docker: remove --use-current-runtime

This commit is contained in:
Abdullah Atta
2024-07-31 09:12:28 +05:00
parent 2201984689
commit 3ebfc8de7c
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ RUN dotnet restore -v d ./Notesnook.sln
WORKDIR /app/Notesnook.API/
# build
ENV DOTNET_TC_QuickJitForLoops="1" DOTNET_ReadyToRun="0" DOTNET_TieredPGO="1" DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="true"
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore /p:Runtimeidentifier=linux-x64
RUN dotnet publish -c Release -o /app/out --self-contained false --no-restore /p:Runtimeidentifier=linux-x64
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0

View File

@@ -10,7 +10,7 @@ RUN dotnet restore -v d ./Notesnook.sln
WORKDIR /app/Streetwriters.Identity/
# build
ENV DOTNET_TC_QuickJitForLoops="1" DOTNET_ReadyToRun="0" DOTNET_TieredPGO="1" DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="true"
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore /p:Runtimeidentifier=linux-x64
RUN dotnet publish -c Release -o /app/out --self-contained false --no-restore /p:Runtimeidentifier=linux-x64
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0

View File

@@ -10,7 +10,7 @@ RUN dotnet restore -v d ./Notesnook.sln
WORKDIR /app/Streetwriters.Messenger/
# build
ENV DOTNET_TC_QuickJitForLoops="1" DOTNET_ReadyToRun="0" DOTNET_TieredPGO="1" DOTNET_SYSTEM_GLOBALIZATION_INVARIANT="true"
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore /p:Runtimeidentifier=linux-x64
RUN dotnet publish -c Release -o /app/out --self-contained false --no-restore /p:Runtimeidentifier=linux-x64
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0