docker: enable reflection for json serializing

This commit is contained in:
Abdullah Atta
2024-07-31 12:58:38 +05:00
parent 005dc4284d
commit d0a1a2ea9f
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -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