Skip to content

Commit

Permalink
reinstate trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
pm7y committed Feb 28, 2023
1 parent 6edee9c commit 3f900a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ RUN dotnet publish -c release -o /artifact \
-p:PublishReadyToRun=false \
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:PublishSingleFile=true \
-p:PublishTrimmed=false \
-p:TrimUnusedDependencies=false
-p:PublishTrimmed=true \
-p:TrimUnusedDependencies=true

# add binary artifact to new runtime-deps only image
FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/runtime-deps:7.0-alpine
Expand Down

0 comments on commit 3f900a2

Please sign in to comment.