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..7f4f06aa 100755 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "@types/react-slick": "^0.23.13", "axios": "^1.5.1", "country-flag-emoji-polyfill": "^0.1.8", - "cypress-file-upload": "^5.0.8", "cytoscape": "^3.26.0", "cytoscape-popper": "^2.0.0", "date-fns": "^3.0.6", @@ -66,10 +65,9 @@ }, "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", "code:format": "prettier --write --ignore-unknown", "prepare": "husky install" }, @@ -92,7 +90,6 @@ "@types/react-beautiful-dnd": "^13.1.4", "@types/react-cytoscapejs": "^1.2.4", "craco-alias": "^3.0.1", - "cypress": "^13.6.1", "husky": "^8.0.3", "lint-staged": "^15.2.0", "prettier": "^3.1.1"