Last active
August 29, 2015 14:03
-
-
Save shovon/fd09be27087f1673e73a to your computer and use it in GitHub Desktop.
Node.js on Docker
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
# 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