Skip to content

Instantly share code, notes, and snippets.

@johnbellone
Created August 15, 2013 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbellone/6237788 to your computer and use it in GitHub Desktop.
Save johnbellone/6237788 to your computer and use it in GitHub Desktop.
Dockerfile to setup nodenv for managing nodejs installations.
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