From eff55dc7ebd3ea18078b8ce3dc16403f5b941b2a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 09:24:53 +0000 Subject: [PATCH] Fix Render deploy: add .dockerignore, reduce NODE_OPTIONS to 4096MB - Add .dockerignore to exclude .git, node_modules, docs, and build artifacts from Docker context, significantly reducing build context size - Reduce NODE_OPTIONS from 8192MB to 4096MB to prevent OOM on Render's Starter build pipeline (8GB RAM with system overhead) Co-Authored-By: Danial Piterson --- .dockerignore | 31 +++++++++++++++++++++++++++++++ Dockerfile | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..68369012 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,31 @@ +# Git +.git +.github +.gitignore +.gitattributes + +# Node (rebuilt in Docker) +node_modules + +# IDE +.idea + +# Documentation +README.md +HOW_TO_CONTRIBUTE.md +VOID_CODEBASE_GUIDE.md +LICENSE*.txt +ThirdPartyNotices.txt + +# CI/CD +CodeQL.yml + +# Build output (rebuilt in Docker) +out + +# OS +.DS_Store +Thumbs.db + +# Playwright browsers (not needed for server) +.playwright diff --git a/Dockerfile b/Dockerfile index 9f66b767..4242b506 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,7 @@ RUN npm i --ignore-scripts \ && (cd remote && npm rebuild) # Build: React components first, then compile produces out/ (server + workbench), compile-web adds extension web bundles -ENV NODE_OPTIONS="--max-old-space-size=8192" +ENV NODE_OPTIONS="--max-old-space-size=4096" RUN npm run buildreact \ && npm run compile \ && npm run compile-web