fix docker build (again)

This commit is contained in:
Abdullah Atta
2024-07-30 16:11:12 +05:00
parent 805ee02b4b
commit 46675033c8
3 changed files with 6 additions and 6 deletions

View File

@@ -7,10 +7,10 @@ ADD . /app
# restore all project dependencies
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 ./Notesnook.API/Notesnook.API.csproj -c Release -o /app/out --use-current-runtime --self-contained false --no-restore
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0

View File

@@ -7,10 +7,10 @@ ADD . /app
# restore all project dependencies
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 ./Streetwriters.Identity/Streetwriters.Identity.csproj -c Release -o /app/out --use-current-runtime --self-contained false --no-restore
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0

View File

@@ -7,10 +7,10 @@ ADD . /app
# restore all project dependencies
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 ./Streetwriters.Identity/Streetwriters.Messenger.csproj -c Release -o /app/out --use-current-runtime --self-contained false --no-restore
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0