i am building a docker image for react app using your bitbucket pipeline and it is taking so long for building approx one hour and at the step of building react build in docker it is saying this.
Step 7/11 : RUN npm run build ---> Running in 78d6a0056407 > 360-analytics@0.1.0 build > react-scripts build Creating an optimized production build... Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme One of your dependencies, babel-preset-react-app, is importing the "@babel/plugin-proposal-private-property-in-object" package without declaring it in its dependencies. This is currently working because "@babel/plugin-proposal-private-property-in-object" is already in your node_modules folder for unrelated reasons, but it may break at any time. babel-preset-react-app is part of the create-react-app project, which is not maintianed anymore. It is thus unlikely that this bug will ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies to work around this error. This will make this message go away.
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process. The command '/bin/sh -c npm run build' returned a non-zero code: 1
i am giving you mine dockerfile :-
Hi @siddhant pandey,
Welcome to the community.
If you haven't done it yet, could you try to increase your Docker service container's memory to 2 GB by adding the configuration below and see if that helps?
definitions: services: docker: memory: 2048
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.