diff --git a/Dockerfile b/Containerfile similarity index 77% rename from Dockerfile rename to Containerfile index 49a1acb..7c9460c 100644 --- a/Dockerfile +++ b/Containerfile @@ -1,10 +1,10 @@ -FROM gitea.pena/penadevops/container-images/node:main as build +FROM gitea.pena/penadevops/container-images/node:v20.14.0 as build WORKDIR /usr/app COPY . . RUN npm install --force && yarn cache clean -RUN npm run build +RUN psstat.sh "npm run build" FROM gitea.pena/penadevops/container-images/nginx:main as result diff --git a/graph.png b/graph.png new file mode 100644 index 0000000..9ce9d04 Binary files /dev/null and b/graph.png differ diff --git a/package.json b/package.json index 1d64e01..b11d18b 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ }, "scripts": { "start": "craco start", - "build": "craco build", + "build": "NODE_OPTIONS=\"--max-old-space-size=32\" craco build", "test": "craco test --env=node --transformIgnorePatterns \"node_modules/(?!@frontend)/\"", "test:cart": "craco test src/utils/calcCart --transformIgnorePatterns \"node_modules/(?!@frontend)/\"", "test:cypress": "start-server-and-test start http://localhost:3000 cypress", diff --git a/stats.log b/stats.log new file mode 100644 index 0000000..2d53734 --- /dev/null +++ b/stats.log @@ -0,0 +1,3 @@ +Timestamp,CPU(%),Memory(GB),Command +2025-03-28 03:08:30, 0.0,.01,node /usr/bin/npm run build +2025-03-28 03:08:31, 8.8,.06,npm run build