Sign inSign up

vcarreira/node

By vcarreira

•Updated almost 10 years ago

NodeJS image to be used with Laravel to run node, gulp and bower commands

Image
0

1.3K

vcarreira/node repository overview

⁠NodeJS container for Laravel

This is a Docker⁠ image for NodeJS⁠ to be used with the Laravel PHP Framework⁠.

An automated build for this repo is available on the Docker Hub⁠.

⁠Running node commands

The container working directory is the volume /var/www. You can run any node command like this:

docker run -t --rm -v $(pwd):/var/www vcarreira/node <node command args here>

⁠Examples

The following examples mount the current directory to /var/www running inside the container.

⁠Running npm
docker run -t --rm -v $(pwd):/var/www vcarreira/node npm install
⁠Running gulp
docker run -t --rm -v $(pwd):/var/www vcarreira/node gulp
⁠Running bower
docker run -t --rm -v $(pwd):/var/www vcarreira/node bower install desandro/masonry

This image works well when used with the Docker Laravel⁠ multi-container solution.

Images used by Docker Laravel⁠


:ok_hand: Happy Coding.

If you have any feedback or questions, feel free to contact me on Twitter with @vcarreira⁠ or email with [email protected]⁠.

Tag summary

Content type

Image

Digest

Size

115.3 MB

Last updated

almost 10 years ago

docker pull vcarreira/node