Merge branch 'master' of gitlab.com:hosttoday/ht-docker-node
This commit is contained in:
commit
bc58522b12
11
README.md
11
README.md
@ -7,19 +7,20 @@ FROM hosttoday/ht-docker-node
|
||||
```
|
||||
|
||||
## Status
|
||||
|
||||
[![build status](https://gitlab.com/hosttoday/ht-docker-node/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-node/commits/master)
|
||||
|
||||
## 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
|
||||
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
|
||||
```
|
||||
|
||||
## flavours:
|
||||
## Flavour Overview:
|
||||
|
||||
* **:lts** - node lts version, equals :latest
|
||||
* **:stable** - node stable version
|
||||
|
Loading…
Reference in New Issue
Block a user