From b81bfdbb1d713c6987b2ce160b6afa582a24879e Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Fri, 19 Jul 2019 12:56:51 +0100 Subject: [PATCH] Updates gitignore --- .gitignore | 2 +- Dockerfile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index bb59834..c2b48eb 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ logs/ .DS_Store .idea -venv/* +/pisa-btc/venv/* conf.py bitcoin.conf* *__pycache__ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9424086 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use the official Ubuntu 16.04 as a parent image. +FROM ubuntu:16.04 + +# Update the package list and install software properties common. +RUN apt-get update && apt-get install -y software-properties-common autoconf automake build-essential git libtool \ +libgmp-dev libsqlite3-dev python python3 net-tools zlib1g-dev vim wget curl iputils-ping + +# Install pip +RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py +RUN python3 get-pip.py + +# Add pisa files +ADD pisa-btc /root/pisa-btc +WORKDIR /root/pisa-btc + +# Export pythonpath +RUN echo export PYTHONPATH="$PYTHONPATH:/root/pisa-btc/" >> /root/.bashrc + +# Install dependencies +RUN pip3 install -r requirements.txt