fix: increase Node memory and skip scripts in Docker build

This commit is contained in:
Ashwin Kumar 2026-04-09 02:08:03 +02:00
parent 36d26b5439
commit c97d54bade

View file

@ -2,10 +2,10 @@ FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
RUN npm install --legacy-peer-deps --ignore-scripts
COPY . .
RUN npm run build
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build
FROM node:20-alpine
WORKDIR /app