a docker image based on node:latest, where gulp-cli is already installed globally
first:
$ cd project/folder
then:
$ docker run --rm -ti -v $(pwd):/app centralmediacsoport/gulp gulp [ARGS...]
or
$ docker run --rm -ti -v $(pwd):/app centralmediacsoport/gulp [ARGS...]
where [ARGS...] is the placeholder for parameters meant for gulp-cli
the following commands are automatically run when the image starts:
npm install
installs the modules in the project's package.json
(usually these are the local gulp packages)npm audit fix
audit fix, if needed (or not)gulp [ARGS...]
note: if gulp stays in watch mode, you can exit with ^C
(this is why the -ti parameter is needed)docker pull centralmediacsoport/gulp:latest