Skip to content

slebote/gulp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

About this Repo

This image is based node docker official node image :

Additions :

  • Gulp local and global package

Supported tags and respective Dockerfile links

Docker compose example

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

Troubleshooting

Docker usage with networks

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)

About

Gulp docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published