File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ WORKDIR /app
55ENV PATH /app/node_modules/.bin:$PATH
66
77COPY package.json ./
8- COPY package-lock.json ./
9- RUN npm install --silent
10- RUN npm install react-scripts@latest -g --silent
8+ RUN npm i --silent
9+ RUN npm i react-scripts@latest -g --silent
1110
1211COPY . ./
Original file line number Diff line number Diff line change 11# build environment
2- FROM node:22-alpine3.18 as build
2+ FROM node:22-alpine as build
33WORKDIR /app
44ENV PATH /app/node_modules/.bin:$PATH
55COPY package.json ./
6- COPY package-lock.json ./
76RUN export NODE_OPTIONS=--max-old-space-size=8192
8- RUN npm ci --silent
9- RUN npm install react-scripts@latest -g --silent
7+ RUN npm i --silent
8+
9+ RUN npm i react-scripts@latest -g --silent
1010COPY . ./
1111RUN npm run build
1212
Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ FROM node:22-alpine3.18 as build
77WORKDIR /app
88ENV PATH /app/node_modules/.bin:$PATH
99COPY package.json ./
10- COPY package-lock.json ./
1110RUN export NODE_OPTIONS=--max-old-space-size=8192
12- RUN npm ci --silent
13- RUN npm install react-scripts@latest -g --silent
11+ RUN npm i --silent
12+ RUN npm i react-scripts@latest -g --silent
1413COPY . ./
1514RUN echo "export default { version: '$RELEASE_VERSION' };" > src/versionInfo.ts
1615RUN npm run build -- --outDir=build
You can’t perform that action at this time.
0 commit comments