File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ .yarn /cache
4+ .git
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ ADD . /usr/src/app
1414WORKDIR /usr/src/app
1515
1616# Install dependencies & build
17- RUN yarn install && yarn build
17+ RUN yarn install --immutable && \
18+ yarn build
1819
1920# Stage 2: Serve with Nginx
2021FROM $RUNTIME
Original file line number Diff line number Diff line change 1111 "scripts" : {
1212 "clean" : " rm -rf dist" ,
1313 "webpack" : " yarn exec webpack" ,
14- "build" : " yarn clean && NODE_ENV=production NODE_OPTIONS=--max-old-space-size=6144 yarn webpack" ,
15- "build-dev" : " yarn clean && NODE_OPTIONS=--max-old-space-size=6144 yarn webpack" ,
14+ "build" : " yarn clean && NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 yarn webpack" ,
15+ "build-dev" : " yarn clean && NODE_OPTIONS=--max-old-space-size=4096 yarn webpack" ,
1616 "start" : " yarn webpack serve" ,
1717 "start-console" : " ./start-console.sh" ,
1818 "i18n" : " ./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js" ,
You can’t perform that action at this time.
0 commit comments