15 lines
262 B
Docker
15 lines
262 B
Docker
|
FROM node:22 AS builder
|
||
|
|
||
|
WORKDIR /usr/src/app
|
||
|
|
||
|
COPY package.json package-lock.json ./
|
||
|
|
||
|
RUN npm config set registry https://registry.npmmirror.com
|
||
|
|
||
|
RUN npm install
|
||
|
|
||
|
COPY . ./
|
||
|
|
||
|
#RUN NODE_OPTIONS=--max_old_space_size=8192 yarn build
|
||
|
RUN npm run build
|