Created
March 20, 2014 21:07
-
-
Save olalonde/9673831 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
FROM ubuntu:precise | |
MAINTAINER Olivier Lalonde <olalonde@gmail.com> | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y bitcoind git node | |
# install node | |
RUN apt-get install -y wget | |
RUN wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-x64.tar.gz | |
RUN tar xzf node-v0.10.26-linux-x64.tar.gz | |
# there is a radio package also called node, remove it | |
RUN rm /usr/sbin/node | |
RUN ln -s /node-v0.10.26-linux-x64/bin/node /usr/sbin/node | |
RUN ln -s /node-v0.10.26-linux-x64/bin/npm /usr/sbin/npm | |
# setup bitcoind | |
RUN cd opt && git clone https://github.com/bitpay/insight-api.git | |
RUN mkdir -p /data/bitcoin | |
RUN cp /opt/insight-api/etc/bitcoind/bitcoin-livenet.conf /data/bitcoin/bitcoin.conf | |
# install insight-api | |
RUN apt-get install -y build-essential | |
RUN cd /opt/insight-api/ && npm install | |
ADD start.sh start.sh | |
EXPOSE 3000 | |
ENTRYPOINT [ "/bin/bash", "/start.sh" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simplified version