Update README.md
This commit is contained in:
parent
37e997ebf2
commit
9aff193ef9
15
README.md
15
README.md
@ -8,13 +8,22 @@ FROM hosttoday/ht-docker-node
|
|||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
This image has nvm, node and npm in PATH.
|
This image has node and npm in PATH.
|
||||||
So if you need an image with a special node version (useful for CI/CA/CD) you can do
|
|
||||||
|
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
|
||||||
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
|
||||||
```
|
```
|
||||||
|
|
||||||
npm and node key words will now point to your selected version when you use your new image.
|
## flavours:
|
||||||
|
|
||||||
|
* **:lts** - node lts version, equals :latest
|
||||||
|
* **:stable** - node stable version
|
||||||
|
* **:npmci** - npmci preinstalled
|
||||||
|
* **:npmts** - npmci + npmts preinstalled
|
||||||
|
* **:npmpage** - npmci + npmts + npmpage preinstalled
|
||||||
|
* **:python3** - like :latest, but with python3 as standard python version
|
||||||
|
Loading…
Reference in New Issue
Block a user