Created
March 13, 2015 19:38
-
-
Save kriswill/1f45dc92faa1bc4c12ab to your computer and use it in GitHub Desktop.
minimal nvm container
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 mini/base | |
RUN apk-install \ | |
bash \ | |
tar \ | |
curl \ | |
git \ | |
c-ares \ | |
libgcc \ | |
libstdc++ \ | |
libuv | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \ | |
touch ~/.bashrc | |
ENV NODE_VERSION iojs | |
RUN NVM_VERSION="$(curl -s -L http://latest.nvm.sh -o /dev/null -D - | grep -Ei '^Location: .*tag/v[0-9.]+' | grep -oEi 'v[0-9.]+')" && \ | |
echo $NVM_VERSION && \ | |
curl https://raw.githubusercontent.com/creationix/nvm/$NVM_VERSION/install.sh | sh && \ | |
source ~/.nvm/nvm.sh && \ | |
nvm install $NODE_VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment