coroin / npm

A docker container minimal install of nodejs to run npm commands.

Home Page:https://hub.docker.com/r/coroin/npm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coroin/npm

A minimal install of nodejs used to run npm commands.

Installation

Pull the latest version from the Docker registry:

$ docker pull coroin/npm

Build

To build the image from source:

$ git clone https://github.com/coroin/npm.git
$ cd npm
$ docker build -t coroin/npm .

Usage Examples

The following examples run npm commands against a laravel application (presumably running in a separate Docker container such as coroin/app):

Install packages:

$ docker run --rm -w /var/www/html coroin/npm install

Compile assets for production:

$ docker run --rm -w /var/www/html coroin/npm run production

About

A docker container minimal install of nodejs to run npm commands.

https://hub.docker.com/r/coroin/npm/

License:MIT License