Skip to content

Instantly share code, notes, and snippets.

@bingluen
Created November 24, 2016 08:57
Show Gist options
  • Save bingluen/3a20a65d360d984ee8d98925244d474f to your computer and use it in GitHub Desktop.
Save bingluen/3a20a65d360d984ee8d98925244d474f to your computer and use it in GitHub Desktop.
# nvm, node, git
FROM centos:6.8
MAINTAINER Erickson Juang <a820224@gmail.com>
RUN yum -y groupinstall "Development Tools" \
&& yum -y install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
RUN curl -L https://github.com/git/git/archive/v2.10.2.tar.gz | tar zx \
&& cd git-2.10.2 && make configure \
&& ./configure --prefix=/usr \
&& make install \
&& rm -rf git-v2.10.2
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION=v6.9.1
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& npm install yarn -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment