Current Dockerfile runs the npm install to install both production and development time dependencies. However, git-hooks module expects to find .git/hooks folder and fails the install because it is missing
app@86755a9aa052:~$ npm install git-hooks
npm http GET https://registry.npmjs.org/git-hooks
npm http 200 https://registry.npmjs.org/git-hooks
npm http GET https://registry.npmjs.org/git-hooks/-/git-hooks-0.0.10.tgz
npm http 200 https://registry.npmjs.org/git-hooks/-/git-hooks-0.0.10.tgz
> git-hooks@0.0.10 postinstall /app/node_modules/git-hooks
> git-hooks --install
fatal: Not a git repository (or any of the parent directories): .git
mv: cannot stat 'hooks': No such file or directory
git-hooks@0.0.10 node_modules/git-hooks
Options are (possibly some others exists as well):
Fix git-hooks
Run npm install --production in Dockerfile and move all the building related dependencies to dependencies
Current Dockerfile runs the
npm install
to install both production and development time dependencies. However, git-hooks module expects to find.git/hooks
folder and fails the install because it is missingOptions are (possibly some others exists as well):
dependencies