Fix: Increase Node.js memory limit to 4GB to prevent OOM
This commit is contained in:
1 parent
020ed58842
commit
ea7582d6f3
1 file changed
+2
@@ -15,6 +15,8 @@ COPY wiki-src/ .
|
||||
|
||||
# Build the application
|
||||
# VuePress build command usually outputs to .vuepress/dist
|
||||
# Increase Node.js memory limit to prevent heap out of memory errors
|
||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Serve the application with Nginx
|
||||
|
||||
Reference in new issue
Block a user