RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash - && \
. $HOME/.nvm/nvm.sh && \
nvm ls && \
chmod -R 777 /bin/ && \
nvm install 18 && \
nvm install 16 && \
nvm install 14 && \
nvm alias default 14 && \
nvm use default && \
nvm ls && \
node -v
I need nvm to build multiple node versions. I am using this on my Jenkins docker agent. But in Jenkins, I got nvm not found.