This image is based node docker official node image :
Additions :
Dockerfile linksalpine, latest (alpine/Dockerfile)Assuming ./theme-folder contains gulpfile.js and package.json with gulp node dependencies (ex: gulp-sass)
version: "3"
services:
# Service Node / Gulp
gulp:
image: slebote/gulp
user: node
working_dir: /home/node/app
environment:
- NODE_ENV=dev
volumes:
- ./theme-folder:/home/node/app
command:
- /bin/sh
- -c
- |
npm install
gulp
If you use this image over a network, the usefull watching files will only work if you turn on usePolling option.
Example : gulp.watch(glob, {usePolling: true}, yourFunction)
docker pull slebote/gulp:latest