Last active
February 19, 2020 07:39
-
-
Save cn27529/0873eae7bf58f6a7f1eb6ce0c70d571b to your computer and use it in GitHub Desktop.
This file contains 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
https://kevintsengtw.blogspot.com/2018/08/aspnet-core-21-docker-image-nodejs.html | |
# install wget | |
RUN apt-get install -y wget | |
# install nodejs | |
ENV NODE_VERSION 10.8.0 | |
RUN wget https://nodejs.org/download/release/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz \ | |
&& tar -xzf "node-v${NODE_VERSION}-linux-x64.tar.gz" -C /usr/local --strip-components=1 \ | |
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \ | |
&& rm node-v${NODE_VERSION}-linux-x64.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment