Reduce memory allocation for builds on low-memory servers

This commit is contained in:
Greg 2025-08-18 00:45:20 +02:00
parent 60b916b883
commit d85c78c19d

View File

@ -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) ----