2016-03-07 02:32:20 +00:00
|
|
|
# ht-docker-node
|
|
|
|
|
|
|
|
This image is available on DockerHub. Specify it as base image like so:
|
|
|
|
|
|
|
|
```Dockerfile
|
|
|
|
FROM hosttoday/ht-docker-node
|
|
|
|
```
|
|
|
|
|
|
|
|
## Status
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
This image has nvm, node and npm in PATH.
|
|
|
|
So if you need an image with a special node version (useful for CI/CA/CD) you can do
|
|
|
|
|
2016-03-07 02:35:09 +00:00
|
|
|
```Dockerfile
|
|
|
|
FROM hosttoday/ht-docker-node
|
2016-05-30 02:19:09 +00:00
|
|
|
RUN npmci install [node_version_number] // this installs node using node and sets the default to the new node and npm versions
|
2016-03-07 02:35:09 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
npm and node key words will now point to your selected version when you use your new image.
|