Added a Dockerfile for use with Redhat-related distros

This commit is contained in:
Chris Kleeschulte 2015-12-07 14:49:42 -05:00
parent cb17aa51aa
commit 8e8f9bf929
1 changed files with 12 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
# build bitcore from source
FROM fedora:latest
MAINTAINER Chris Kleeschulte <chrisk@bitpay.com>
RUN dnf -y install git-all 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"