diff --git a/Notesnook.API/Dockerfile b/Notesnook.API/Dockerfile index 641c7b4..c811819 100644 --- a/Notesnook.API/Dockerfile +++ b/Notesnook.API/Dockerfile @@ -27,11 +27,12 @@ RUN dotnet build -c Release -o /app/build -a $TARGETARCH FROM build AS publish RUN dotnet publish -c Release -o /app/publish \ - #--runtime alpine-x64 \ - --self-contained true \ - /p:PublishTrimmed=true \ - /p:PublishSingleFile=true \ - -a $TARGETARCH + #--runtime alpine-x64 \ + --self-contained true \ + /p:TrimMode=partial \ + /p:PublishTrimmed=true \ + /p:PublishSingleFile=true \ + -a $TARGETARCH FROM --platform=$BUILDPLATFORM base AS final ARG TARGETARCH diff --git a/Streetwriters.Identity/Dockerfile b/Streetwriters.Identity/Dockerfile index a8f95e9..e148649 100644 --- a/Streetwriters.Identity/Dockerfile +++ b/Streetwriters.Identity/Dockerfile @@ -27,11 +27,12 @@ RUN dotnet build -c Release -o /app/build -a $TARGETARCH FROM build AS publish RUN dotnet publish -c Release -o /app/publish \ - #--runtime alpine-x64 \ - --self-contained true \ - /p:PublishTrimmed=true \ - /p:PublishSingleFile=true \ - -a $TARGETARCH + #--runtime alpine-x64 \ + --self-contained true \ + /p:TrimMode=partial \ + /p:PublishTrimmed=true \ + /p:PublishSingleFile=true \ + -a $TARGETARCH FROM --platform=$BUILDPLATFORM base AS final ARG TARGETARCH diff --git a/Streetwriters.Messenger/Dockerfile b/Streetwriters.Messenger/Dockerfile index 2b87a04..c628eb4 100644 --- a/Streetwriters.Messenger/Dockerfile +++ b/Streetwriters.Messenger/Dockerfile @@ -27,11 +27,12 @@ RUN dotnet build -c Release -o /app/build -a $TARGETARCH FROM build AS publish RUN dotnet publish -c Release -o /app/publish \ - #--runtime alpine-x64 \ - --self-contained true \ - /p:PublishTrimmed=true \ - /p:PublishSingleFile=true \ - -a $TARGETARCH + #--runtime alpine-x64 \ + --self-contained true \ + /p:TrimMode=partial \ + /p:PublishTrimmed=true \ + /p:PublishSingleFile=true \ + -a $TARGETARCH FROM --platform=$BUILDPLATFORM base AS final ARG TARGETARCH