mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: Increase DART VM heap size to 16GB and precache web artifacts for build optimization.
This commit is contained in:
1 parent
1432ca12bc
commit
f9098e02ed
1 file changed
+4
-3
+4
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user