Last active
December 26, 2019 18:25
-
-
Save alireza-mpr/8ca98a9090265c03f5744f590d8ddae3 to your computer and use it in GitHub Desktop.
Docker: Install nodejs on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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