Created
August 15, 2013 02:49
-
-
Save johnbellone/6237788 to your computer and use it in GitHub Desktop.
Dockerfile to setup nodenv for managing nodejs installations.
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
from ubuntu | |
maintainer John Bellone <john.bellone.jr@gmail.com> | |
# install essentials | |
run apt-get -y update | |
run apt-get -y install build-essential git-core | |
# install rbenv | |
run git clone https://github.com/OiNutter/nodenv /usr/local/nodenv | |
run mkdir -p /usr/local/nodenv/plugins | |
run echo 'export NODENV_ROOT=/usr/local/nodenv' > /etc/profile.d/nodenv.sh | |
run echo 'export PATH=$NODENV_ROOT/bin:$PATH' >> /etc/profile.d/nodenv.sh | |
run echo 'eval "$(nodenv init -)"' | |
# install plugins | |
run git clone https://github.com/OiNutter/node-build /usr/local/nodenv/plugins/node-build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment