Public | Automated Build

Last pushed: a year ago
Short Description
NodeJS image to be used with Laravel to run node, gulp and bower commands
Full Description

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

Related Laravel images

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 vitor.carreira@gmail.com.

Docker Pull Command
Owner
vcarreira
Source Repository

Comments (0)