Skip to content

Commit

Permalink
Remove TrimUnusedDependencies for now as it causes issue on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
pm7y committed Feb 25, 2023
1 parent 7d9e4be commit 9832ba0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ COPY /src/AzureEventGridSimulator .
# build source and publish as single file called 'AzureEventGridSimulator'
RUN dotnet publish -c release -o /artifact \
#-r alpine-x64 \
#-r osx.13-arm64 \
-f net7.0 \
-v q \
--nologo \
--self-contained true \
-p:PublishReadyToRun=false \
-p:IncludeNativeLibrariesForSelfExtract=true \
-p:PublishSingleFile=true \
-p:PublishTrimmed=true \
-p:TrimUnusedDependencies=true
-p:PublishTrimmed=true
#-p:TrimUnusedDependencies=true

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

0 comments on commit 9832ba0

Please sign in to comment.