improve README
This commit is contained in:
parent
f3b85d94eb
commit
b8d3094ad7
11
README.md
11
README.md
@ -12,7 +12,10 @@ FROM hosttoday/ht-docker-node
|
|||||||
This image has nvm, node and npm in PATH.
|
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
|
So if you need an image with a special node version (useful for CI/CA/CD) you can do
|
||||||
|
|
||||||
```sh
|
```Dockerfile
|
||||||
nvm install [node_version_number]
|
FROM hosttoday/ht-docker-node
|
||||||
nvm alias default [node_version_number]
|
RUN nvm install [node_version_number] \
|
||||||
```
|
&& nvm alias default [node_version_number]
|
||||||
|
```
|
||||||
|
|
||||||
|
npm and node key words will now point to your selected version when you use your new image.
|
Loading…
Reference in New Issue
Block a user