Merge pull request #1375 from kleetus/feature/dockerized

Added a Dockerfile for use with Redhat-related distros
This commit is contained in:
Braydon Fuller 2016-01-28 13:58:43 -05:00
commit 7a5b812711

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
# setup a centos image with bitcore binary components
FROM centos:latest
MAINTAINER Chris Kleeschulte <chrisk@bitpay.com>
RUN yum -y install git curl which xz tar findutils
RUN groupadd bitcore
RUN useradd bitcore -m -s /bin/bash -g bitcore
ENV HOME /home/bitcore
USER bitcore
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
RUN /bin/bash -l -c "nvm install v4 && nvm alias default v4"
RUN /bin/bash -l -c "npm install bitcore -g"