From 3fcd291c6b2b3c44a6c1ef8c600df1f886657d4a Mon Sep 17 00:00:00 2001 From: skeris Date: Sun, 30 Mar 2025 19:45:28 +0300 Subject: [PATCH] measure ram utilisation on staging hub --- .gitea/workflows/deployProd.yml | 4 ++-- Dockerfile => Containerfile | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename Dockerfile => Containerfile (73%) diff --git a/.gitea/workflows/deployProd.yml b/.gitea/workflows/deployProd.yml index ad853873..e8118970 100644 --- a/.gitea/workflows/deployProd.yml +++ b/.gitea/workflows/deployProd.yml @@ -8,10 +8,10 @@ on: jobs: CreateImage: - runs-on: [skeris] + runs-on: [frontstaging] uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p with: - runner: skeris + runner: frontstaging secrets: REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} diff --git a/Dockerfile b/Containerfile similarity index 73% rename from Dockerfile rename to Containerfile index 9ce004b0..d5c502fb 100644 --- a/Dockerfile +++ b/Containerfile @@ -1,11 +1,11 @@ -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 WORKDIR /usr/share/nginx/html diff --git a/package.json b/package.json index 1b9a94c3..b2db3180 100755 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ }, "scripts": { "start": "craco start", - "build": "craco build", + "build": "NODE_OPTIONS=\"--max-old-space-size=1024\" craco build", "test": "craco test", "eject": "craco eject", "cypress:open": "cypress open",