Created
November 24, 2016 08:57
-
-
Save bingluen/3a20a65d360d984ee8d98925244d474f to your computer and use it in GitHub Desktop.
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
# nvm, node, git | |
FROM centos:6.8 | |
MAINTAINER Erickson Juang <[email protected]> | |
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