Sign inSign up

ccctechcenter/dnodejs

By ccctechcenter

Updated about 2 years ago

nodejs gulp bower git grunt-cli optimized to work with laravel (mounts /var/www as workspace)

Image
0

1.7K

ccctechcenter/dnodejs repository overview

dnodejs

NodeJS with gulp,grunt and bower in docker container

Usage

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.

Examples

Suppose your site folder is /home/user/mysite execute this:

npm install

$ docker run -v /home/user/mysite:/var/www spiralout/dnodejs npm instal

Install gulp

$ docker run -v /home/user/mysite:/var/www spiralout/dnodejs npm instal gulp

Run gulp

$ docker run -v /home/user/mysite:/var/www spiralout/dnodejs gulp

Run gulp watch

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

Tag summary

Content type

Image

Digest

sha256:35b3e6087

Size

168.1 MB

Last updated

about 2 years ago

docker pull ccctechcenter/dnodejs