Docker image base for continuous integration with NodeJs
This is a docker image example to work with NodeJS and Git and implement a continuous integration.
Copy pre-commit file in /usr/share/git-core/templates/hooks/
Make a sub docker image that will initiate your project and doing a git init.
The git init get the pre-commit file in his templates/hooks and put it in your project's directory.
Now when you commit it'll execute pre-commit file which execute your tests before commit.
If tests failed then commit fail too.