To build: docker build -t docker-karma . To run: npm install docker run -p 9876:9876 -v $PWD:/opt/karma -i -t docker-karma This will run all the Jasmine tests in the tests directory using Karma and Chromium in a Docker container.