jpsim / jpsim/AWSPics

Docker build is failing on npm install --production command

Open
#27 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
224
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Deploy script is failing where it tries to build a docker image at this line.

docker build -t "cloudformation-lambda-$function" .

The error is:
The command '/bin/sh -c npm install --production' returned a non-zero code: 132.

In Dockerfile, this is the particular line which is failing:

RUN npm install --production

I tried googling it but none of the proposed solutions is working. Please help.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the deploy script's docker build -t "cloudformation-lambda-$function" . command and the RUN npm install --production step in Dockerfile. Reproduce the image build and inspect the complete npm and Docker output around exit code 132. Done means the production install completes and the Docker image builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, node.js
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.