Skip to content

Commit

Permalink
docker: fix `You may also need to include 'linux-x64' in your project…
Browse files Browse the repository at this point in the history
…'s RuntimeIdentifiers`
  • Loading branch information
thecodrr committed Jul 31, 2024
1 parent 4667503 commit 2201984
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Notesnook.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore /p:Runtimeidentifier=linux-x64

# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
Expand Down
2 changes: 1 addition & 1 deletion Streetwriters.Identity/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore /p:Runtimeidentifier=linux-x64

# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
Expand Down
2 changes: 1 addition & 1 deletion Streetwriters.Messenger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
RUN dotnet publish -c Release -o /app/out --use-current-runtime --self-contained false --no-restore /p:Runtimeidentifier=linux-x64

# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
Expand Down

0 comments on commit 2201984

Please sign in to comment.