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

git not found in alpine image #586

Closed
krazyjakee opened this issue Nov 14, 2017 · 4 comments

Comments

@krazyjakee
Copy link

commented Nov 14, 2017

npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR! 
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

Looks like it's missing from the current alpine image.
npm install is kinda fundamental to node and git is required to install certain dependencies.

Including

RUN apk update && apk upgrade && \
    apk add --no-cache bash git openssh

in the dockerfile will fix it.

@LaurentGoderre

This comment has been minimized.

Copy link
Contributor

commented Nov 14, 2017

There was a discussion about this here: #367

If you only need it for npm, you should use a multi-stage build.

@SimenB SimenB added the question label Nov 15, 2017

@SimenB

This comment has been minimized.

Copy link
Member

commented Nov 15, 2017

I don't think anything has changed from our side since #367, so closing

@tarampampam

This comment has been minimized.

Copy link

commented Oct 5, 2018

If anyone need to use node (alpine) with git, take a look into this repository: https://github.com/tarampampam/node-docker

@alexisdiel

This comment has been minimized.

Copy link

commented Jan 11, 2019

RUN apk add --no-cache git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.