fix: increase Node memory and skip scripts in Docker build
This commit is contained in:
parent
36d26b5439
commit
c97d54bade
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue