Reduce memory allocation for builds on low-memory servers
This commit is contained in:
parent
60b916b883
commit
d85c78c19d
@ -10,7 +10,7 @@ RUN npm install && npm cache clean --force
|
||||
# Build frontend
|
||||
COPY . .
|
||||
ENV NODE_ENV=production
|
||||
ENV NODE_OPTIONS=--max-old-space-size=512
|
||||
ENV NODE_OPTIONS=--max-old-space-size=256
|
||||
RUN npm run build
|
||||
|
||||
# ---- Runtime (Node.js server with static files) ----
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user