Skip to content

Instantly share code, notes, and snippets.

@alireza-mpr
Last active December 26, 2019 18:25
Show Gist options
  • Save alireza-mpr/8ca98a9090265c03f5744f590d8ddae3 to your computer and use it in GitHub Desktop.
Save alireza-mpr/8ca98a9090265c03f5744f590d8ddae3 to your computer and use it in GitHub Desktop.
Docker: Install nodejs on Ubuntu
# To leverage layering, I've splitted the process into multiple lines:
RUN apt-get update
RUN apt-get install -y sudo
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
RUN apt-get install -y nodejs nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment