title: Strange Git Error on Docker NPM Install
body: <p>I had a working Dockerfile until literally a day ago when it just seemed to break. I didn't make any changes to my dependencies - but I am getting the following error: </p>
  
  <pre><code>[91mnpm ERR! code ENOGIT
  [0m
  [91mnpm ERR! No git binary found in $PATH
  npm ERR! 
  npm[0m
  [91m ERR! Failed using git.
  npm ERR! Please check if you have git installed and in your PATH.
  [0m
  [91m
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /root/.npm/_logs/2017-09-28T21_12_50_050Z-debug.log
  [0m
  Removing intermediate container be9d5bfe5521
  
  The command '/bin/sh -c npm install' returned a non-zero code: 1
  </code></pre>
  
  <p>This is super strange because this wasn't happening before. I'm also attaching my Dockerfile. The things I've tried so far are adding git (third line), and also trying to export the path. Nothing seems to be working.</p>
  
  <pre><code>FROM ubuntu:latest
  RUN apt-get update
  RUN apt-get install -y git
  
  FROM node:alpine
  
  RUN npm install sails -g
  #RUN npm install git -g
  #RUN export PATH="$HOME/usr/bin/git:$PATH"
  
  RUN mkdir -p /service/app
  WORKDIR /service/app
  
  COPY package.json /service/app
  RUN npm install
  
  COPY . /service/app
  
  EXPOSE 80
  
  CMD NODE_ENV=production sails lift
  </code></pre>