From c8b51991c208b3623a70a1fdf882bbc65aaaf293 Mon Sep 17 00:00:00 2001 From: Muneeb Ali Date: Sun, 9 Apr 2017 21:45:04 -0400 Subject: [PATCH] added docker build image for Blockstack API --- images/docker/api/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 images/docker/api/Dockerfile diff --git a/images/docker/api/Dockerfile b/images/docker/api/Dockerfile new file mode 100644 index 000000000..bc7b88f7a --- /dev/null +++ b/images/docker/api/Dockerfile @@ -0,0 +1,19 @@ +FROM docker/whalesay:latest + +RUN sudo apt-get update && sudo apt-get install -y build-essential python-pip git-core python-dev libssl-dev libffi-dev rng-tools libgmp3-dev +RUN sudo pip install pip --upgrade +RUN sudo pip install blockstack --upgrade + +RUN mkdir -p /usr/local/blockstack-core +RUN git clone https://github.com/blockstack/blockstack-core /usr/local/blockstack-core + +WORKDIR /usr/local/blockstack-core + +RUN git fetch origin +RUN git checkout -b api origin/api +RUN sudo apt-get install -y libmemcached-dev zlib1g-dev +RUN pip install --upgrade -r api/requirements.txt + +EXPOSE 5000 + +CMD bin/blockstack-api \ No newline at end of file