diff --git a/README.md b/README.md index 5cb2e41..8554208 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,10 @@ FROM hosttoday/ht-docker-node 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 -```sh -nvm install [node_version_number] -nvm alias default [node_version_number] -``` \ No newline at end of file +```Dockerfile +FROM hosttoday/ht-docker-node +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. \ No newline at end of file