An Alpine Linux image to run gulp routines
379
An Alpine Linux image to run gulp commands, especially background tasks like watch.
By default, the image is run invoking watch task.
docker run --rm -d --name gulp -v $(PWD):/src yannoff/gulp
which is equivalent to issuing:
docker run --rm -d --name gulp -v $(PWD):/src yannoff/gulp watch
NOTE: The above example assumes a
gulpfile.jsis present in the current directory, and awatchtask has been defined. If not, the container will stop and exit with a non-zero status.
For instance, to execute the build:assets task once:
docker run --rm --name gulp -v $(PWD):/src yannoff/gulp build:assets
The integration in a stack is intended for the watch mode (default), which is the only task capable of holding the service up and running.
#docker-compose.yml
gulp:
image: yannoff/gulp
volumes:
- "./:/src"
Content type
Image
Digest
Size
23.1 MB
Last updated
almost 8 years ago
docker pull yannoff/gulp