Skip to content

Instantly share code, notes, and snippets.

@domasx2
Created July 29, 2016 13:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save domasx2/5750bcc351213e66cf70935ac7dc61fc to your computer and use it in GitHub Desktop.
FROM ubuntu
WORKDIR /opt
RUN apt-get update && \
apt-get install -y wget xz-utils && \
wget https://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-x64.tar.xz && \
tar -xf node-v6.3.1-linux-x64.tar.xz && \
ln -s /opt/node-v6.3.1-linux-x64/bin/node -t /usr/local/bin && \
ln -s /opt/node-v6.3.1-linux-x64/bin/npm -t /usr/local/bin
WORKDIR /
CMD node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment