I have been trying to build a docker image and deploy it to ECR through Bitbucket pipeline. In the build step I am facing an issue process "/bin/sh -c npm run build" did not complete successfully: exit code: 137. Ours is a node JS project and the docker fil we are using is:
FROM node:16.17-alpine
WORKDIR /app
COPY . .
RUN npm i
RUN npm run build
EXPOSE 9005
CMD [ "node", "build/apis/index.js" ].
I have added the memory utilization command and I registered that before killing the process memory utilization was 18MB and around 12 MB on an average through out the build. Same docker image is working in another project. There are no issues in code, building correctly when tried locally and through GIthub Workflow. Where is the issue actually?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.