2015-08-12 17:24:40 +00:00
|
|
|
FROM debian:latest
|
|
|
|
|
|
|
|
MAINTAINER Rui Marinho <rui.marinho@seegno.com>
|
|
|
|
|
|
|
|
RUN apt-get update -y \
|
|
|
|
&& apt-get install -y curl \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
2016-01-13 01:22:08 +00:00
|
|
|
ENV BITCOIND_VERSION 0.11.2
|
2015-08-12 17:24:40 +00:00
|
|
|
|
2016-02-18 23:41:54 +00:00
|
|
|
RUN curl -SL https://bitcoin.org/laanwj-releases.asc | gpg --import \
|
2015-08-12 17:24:40 +00:00
|
|
|
&& curl -SLO "https://bitcoin.org/bin/bitcoin-core-${BITCOIND_VERSION}/SHA256SUMS.asc" \
|
2016-02-18 23:41:54 +00:00
|
|
|
&& curl -SLO "https://bitcoin.org/bin/bitcoin-core-${BITCOIND_VERSION}/bitcoin-${BITCOIND_VERSION}-linux64.tar.gz" \
|
2015-08-12 17:24:40 +00:00
|
|
|
&& gpg --verify SHA256SUMS.asc \
|
|
|
|
&& grep " bitcoin-${BITCOIND_VERSION}-linux64.tar.gz\$" SHA256SUMS.asc | sha256sum -c - \
|
|
|
|
&& tar -xzf "bitcoin-${BITCOIND_VERSION}-linux64.tar.gz" -C /opt \
|
|
|
|
&& rm "bitcoin-${BITCOIND_VERSION}-linux64.tar.gz" SHA256SUMS.asc
|
|
|
|
|
|
|
|
ENV PATH /opt/bitcoin-${BITCOIND_VERSION}/bin:$PATH
|
|
|
|
|
|
|
|
VOLUME ["/var/lib/bitcoind"]
|
|
|
|
|
|
|
|
EXPOSE 8332 8333 18332 18333 18444
|
|
|
|
|
|
|
|
ENTRYPOINT ["bitcoind"]
|
|
|
|
|
|
|
|
CMD ["--version"]
|