Skip to content

Instantly share code, notes, and snippets.

@kriswill
Created March 13, 2015 19:38
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 kriswill/1f45dc92faa1bc4c12ab to your computer and use it in GitHub Desktop.
Save kriswill/1f45dc92faa1bc4c12ab to your computer and use it in GitHub Desktop.
minimal nvm container
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