Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build Docker with npm install -g #2

Closed
alexei-led opened this issue Jun 18, 2018 · 3 comments
Closed

Cannot build Docker with npm install -g #2

alexei-led opened this issue Jun 18, 2018 · 3 comments
Assignees
Labels

Comments

@alexei-led
Copy link

It's not possible to build the following valid Dockerfile with Codefresh.

FROM node:9-alpine
RUN npm install -g serverless

It's possible to build it locally with any Docker engine, including codefresh/dind:17.12-v12 (our DinD)

@alexei-led
Copy link
Author

very strange issue indeed

docker build for node:8/9/10-alpine based Dockerfile with npm install -g <any_module> fails with any Docker (or dind) engine running on Amazon M5 instances.

see related:
npm/npm#20861
https://bitbucket.org/site/master/issues/16334/pipelines-failing-with-could-not-get-uid

@ccheshire
Copy link

I ran into the same issue after we upgraded to an m5 instance,
found a solution at npm/uid-number#3 (comment)

so I added
RUN npm config set unsafe-perm true to my Dockerfile before the npm install and everything works again

@masontikhonov
Copy link
Contributor

Closing as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants