Not able to install Node 10.x version in docker container

I have all the code to install nodejs 10.x verison inside ubuntu docker file, but its listing only the old version when am using node -v and not the latest one. PFB the dockerfile for more understanding

FROM selenium/node-chrome-x.x.x
RUN  curl -sL | sudo -E bash -
RUN apt-get install nodejs
RUN sudo ln -s /usr/bin/nodejs /usr/local/bin/node
RUN node -v

Expected output
Node version 10.x

Actual output
Node Version is 4.86

Please let us know how to setup the latest nodejs version and use it for other tool setup

Source: StackOverflow