To build: docker build -rm -t docker-grunt . To run: docker run -p 8080:8080 -v $PWD/src:/opt/grunt/src -i -t docker-grunt This will run the default Grunt task and serve the result from a Docker container.