From 8e8f9bf92944caaeb768e1664a99aad88ca415e2 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Mon, 7 Dec 2015 14:49:42 -0500 Subject: [PATCH 1/2] Added a Dockerfile for use with Redhat-related distros --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8c3b0a9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +# build bitcore from source +FROM fedora:latest +MAINTAINER Chris Kleeschulte +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" + From 5c3a53c1172958ef423de44f3e9c9527b4126155 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Mon, 7 Dec 2015 16:40:16 -0500 Subject: [PATCH 2/2] Switched to yum (dn. apparently hasn't made it to RHEL or Centos) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c3b0a9..f6510b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -# build bitcore from source -FROM fedora:latest +# setup a centos image with bitcore binary components +FROM centos:latest MAINTAINER Chris Kleeschulte -RUN dnf -y install git-all curl which xz tar findutils +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