docker: do not publish trimmed images

This commit is contained in:
Abdullah Atta
2026-01-01 10:36:02 +05:00
parent 8908b8c6ed
commit 0a8c707387
3 changed files with 0 additions and 6 deletions

View File

@@ -27,8 +27,6 @@ FROM build AS publish
RUN dotnet publish -c Release -o /app/publish \ RUN dotnet publish -c Release -o /app/publish \
#--runtime alpine-x64 \ #--runtime alpine-x64 \
--self-contained true \ --self-contained true \
/p:TrimMode=partial \
/p:PublishTrimmed=true \
/p:PublishSingleFile=true \ /p:PublishSingleFile=true \
/p:JsonSerializerIsReflectionEnabledByDefault=true \ /p:JsonSerializerIsReflectionEnabledByDefault=true \
-a $TARGETARCH -a $TARGETARCH

View File

@@ -27,8 +27,6 @@ FROM build AS publish
RUN dotnet publish -c Release -o /app/publish \ RUN dotnet publish -c Release -o /app/publish \
#--runtime alpine-x64 \ #--runtime alpine-x64 \
--self-contained true \ --self-contained true \
/p:TrimMode=partial \
/p:PublishTrimmed=true \
/p:PublishSingleFile=true \ /p:PublishSingleFile=true \
/p:JsonSerializerIsReflectionEnabledByDefault=true \ /p:JsonSerializerIsReflectionEnabledByDefault=true \
-a $TARGETARCH -a $TARGETARCH

View File

@@ -27,8 +27,6 @@ FROM build AS publish
RUN dotnet publish -c Release -o /app/publish \ RUN dotnet publish -c Release -o /app/publish \
#--runtime alpine-x64 \ #--runtime alpine-x64 \
--self-contained true \ --self-contained true \
/p:TrimMode=partial \
/p:PublishTrimmed=true \
/p:PublishSingleFile=true \ /p:PublishSingleFile=true \
/p:JsonSerializerIsReflectionEnabledByDefault=true \ /p:JsonSerializerIsReflectionEnabledByDefault=true \
-a $TARGETARCH -a $TARGETARCH