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.
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>
The following examples mount the current directory to /var/www running inside the container.
docker run -t --rm -v $(pwd):/var/www vcarreira/node npm install
docker run -t --rm -v $(pwd):/var/www vcarreira/node gulp
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
- vcarreira/nginx-php7-fpm
- vcarreira/redis
- vcarreira/composer
- vcarreira/artisan
- vcarreira/node
- vcarreira/phpspec
- vcarreira/phpunit
๐ Happy Coding.
If you have any feedback or questions, feel free to contact me on Twitter with @vcarreira or email with [email protected].