Skip to content

Instantly share code, notes, and snippets.

@shovon
Last active August 29, 2015 14:03
Show Gist options
  • Save shovon/fd09be27087f1673e73a to your computer and use it in GitHub Desktop.
Save shovon/fd09be27087f1673e73a to your computer and use it in GitHub Desktop.
Node.js on Docker
# Node.js v0.10.31
FROM ubuntu:14.04
RUN apt-get update; apt-get install -y curl
ENV VERSION 0.10.31
ENV NODE_PATH node-v${VERSION}-linux-x64
RUN curl http://nodejs.org/dist/v${VERSION}/${NODE_PATH}.tar.gz > ${NODE_PATH}.tar.gz
RUN tar xvfz ${NODE_PATH}.tar.gz
RUN ln -s /${NODE_PATH}/bin/node /bin/node
RUN ln -s /${NODE_PATH}/bin/npm /bin/npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment