mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-21 14:08:04 +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
|
RUN git config --global --add safe.directory /app
|
||||||
|
|
||||||
# Optimize DART VM Memory for build to prevent OOM
|
# 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)
|
# Enable web support and PRECACHE artifacts to avoid downloads during build
|
||||||
RUN flutter config --enable-web
|
RUN flutter config --enable-web && flutter precache --web
|
||||||
|
|
||||||
# Clean build environment at the START if needed, but usually redundant in fresh image
|
# Clean build environment at the START if needed, but usually redundant in fresh image
|
||||||
# RUN flutter clean
|
# RUN flutter clean
|
||||||
|
|||||||
Reference in new issue
Block a user