2017-04-27 20:09:12 +02:00
|
|
|
FROM ubuntu:16.04
|
2017-10-31 12:27:13 +01:00
|
|
|
MAINTAINER Christian Decker <decker.christian@gmail.com>
|
2017-04-27 20:09:12 +02:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2018-02-28 12:03:14 +01:00
|
|
|
ENV BITCOIN_VERSION 0.16.0
|
2017-04-27 20:09:12 +02:00
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
RUN apt-get -qq update && \
|
2017-10-31 12:27:13 +01:00
|
|
|
apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
2017-12-10 14:30:27 +01:00
|
|
|
clang \
|
2017-10-31 12:27:13 +01:00
|
|
|
eatmydata \
|
2017-04-27 20:09:12 +02:00
|
|
|
software-properties-common \
|
|
|
|
build-essential \
|
|
|
|
autoconf \
|
|
|
|
libtool \
|
|
|
|
libprotobuf-c-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libgmp-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
git \
|
|
|
|
python \
|
|
|
|
python3 \
|
|
|
|
valgrind \
|
|
|
|
net-tools \
|
|
|
|
python3-pip \
|
2017-12-21 13:20:49 +01:00
|
|
|
python3-setuptools \
|
2017-11-09 14:42:03 +01:00
|
|
|
python-pkg-resources \
|
2017-10-31 12:27:13 +01:00
|
|
|
wget && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN cd /tmp/ && \
|
2018-02-28 12:03:14 +01:00
|
|
|
wget https://bitcoin.org/bin/bitcoin-core-$BITCOIN_VERSION/bitcoin-$BITCOIN_VERSION-x86_64-linux-gnu.tar.gz -O bitcoin.tar.gz && \
|
2017-10-31 12:27:13 +01:00
|
|
|
tar -xvzf bitcoin.tar.gz && \
|
2018-02-28 12:03:14 +01:00
|
|
|
mv /tmp/bitcoin-$BITCOIN_VERSION/bin/bitcoin* /usr/local/bin/ && \
|
|
|
|
rm -rf bitcoin.tar.gz /tmp/bitcoin-$BITCOIN_VERSION
|
2017-04-27 20:09:12 +02:00
|
|
|
|
2018-02-23 22:49:05 +01:00
|
|
|
RUN pip3 install --upgrade pip && \
|
|
|
|
pip3 install python-bitcoinlib==0.7.0 pytest==3.0.5 setuptools==36.6.0 pytest-test-groups==1.0.3 flake8==3.5.0 pytest-rerunfailures==3.1
|