mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
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 <danial.samiei@gmail.com>
This commit is contained in:
parent
35e5a92911
commit
eff55dc7eb
2 changed files with 32 additions and 1 deletions
31
.dockerignore
Normal file
31
.dockerignore
Normal file
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue