Merge branch 'master' of gitlab.com:hosttoday/ht-docker-node

This commit is contained in:
Philipp Kunz 2016-07-18 03:57:31 +02:00
commit bc58522b12

View File

@ -7,19 +7,20 @@ FROM hosttoday/ht-docker-node
``` ```
## Status ## Status
[![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
## Usage ## Usage
This image has node and npm in PATH. The purpose of this Docker image is to provide a robust base for node apps and CI.
It comes in different flavours and all of them have node, npm, git and ssh in PATH.
The **** npmci flavour has npmci in path and can install any required node version and update PATH accordingly: The **:npmci flavour** has npmci in path and can install any required node version and update PATH accordingly:
```Dockerfile ```Dockerfile
FROM hosttoday/ht-docker-node FROM hosttoday/ht-docker-node:npmci
RUN npmci install [node_version_number] // this installs node using node and sets the default to the new node and npm versions RUN npmci install [node_version_number] // this installs node using node and sets the default to the new node and npm versions
``` ```
## flavours: ## Flavour Overview:
* **:lts** - node lts version, equals :latest * **:lts** - node lts version, equals :latest
* **:stable** - node stable version * **:stable** - node stable version