Skip to content

Commit

Permalink
docker: enable reflection for json serializing
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jul 31, 2024
1 parent 005dc42 commit d0a1a2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Notesnook.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN dotnet publish -c Release -o /app/publish \
/p:TrimMode=partial \
/p:PublishTrimmed=true \
/p:PublishSingleFile=true \
/p:JsonSerializerIsReflectionEnabledByDefault=true \
-a $TARGETARCH

FROM --platform=$BUILDPLATFORM base AS final
Expand Down
1 change: 1 addition & 0 deletions Streetwriters.Identity/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN dotnet publish -c Release -o /app/publish \
/p:TrimMode=partial \
/p:PublishTrimmed=true \
/p:PublishSingleFile=true \
/p:JsonSerializerIsReflectionEnabledByDefault=true \
-a $TARGETARCH

FROM --platform=$BUILDPLATFORM base AS final
Expand Down
1 change: 1 addition & 0 deletions Streetwriters.Messenger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN dotnet publish -c Release -o /app/publish \
/p:TrimMode=partial \
/p:PublishTrimmed=true \
/p:PublishSingleFile=true \
/p:JsonSerializerIsReflectionEnabledByDefault=true \
-a $TARGETARCH

FROM --platform=$BUILDPLATFORM base AS final
Expand Down

0 comments on commit d0a1a2e

Please sign in to comment.