From f9098e02ed32c3322331d09c5b391bea720e77ae Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Tue, 10 Mar 2026 10:55:51 +0100 Subject: [PATCH] feat: Increase DART VM heap size to 16GB and precache web artifacts for build optimization. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3cce03c..8907250 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,11 @@ WORKDIR /app RUN git config --global --add safe.directory /app # Optimize DART VM Memory for build to prevent OOM -ENV DART_VM_OPTIONS="--old_gen_heap_size=4096" +# Increased to 16GB for high-performance servers +ENV DART_VM_OPTIONS="--old_gen_heap_size=16384" -# Enable web support (idempotent) -RUN flutter config --enable-web +# Enable web support and PRECACHE artifacts to avoid downloads during build +RUN flutter config --enable-web && flutter precache --web # Clean build environment at the START if needed, but usually redundant in fresh image # RUN flutter clean