nodejs gulp bower git grunt-cli optimized to work with laravel (mounts /var/www as workspace)
1.7K
NodeJS with gulp,grunt and bower in docker container
Mount your volume to /var/www and execute gulp, grunt or bower directly from your container
Use this template
$ docker run -v </Your/Absolute/Path/To/laravel/folder>:/var/www spiralout/dnodejs <command>
replace </Your/Absolute/Path/To/laravel/folder> with your projects folder and <command> with any nodejs command, like npm install.
Suppose your site folder is /home/user/mysite execute this:
$ docker run -v /home/user/mysite:/var/www spiralout/dnodejs npm instal
$ docker run -v /home/user/mysite:/var/www spiralout/dnodejs npm instal gulp
$ docker run -v /home/user/mysite:/var/www spiralout/dnodejs gulp
to run a container and keep it live you have to use the -d option
$ docker run -d -v /home/user/mysite:/var/www spiralout/dnodejs gulp watch
Content type
Image
Digest
sha256:35b3e6087…
Size
168.1 MB
Last updated
about 2 years ago
docker pull ccctechcenter/dnodejs