You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
FROM debian:stable-slim
|
|
|
|
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
|
|
|
|
|
|
|
|
COPY ./bin /usr/local/bin
|
|
|
|
COPY ./VERSION /tmp
|
|
|
|
|
|
|
|
RUN VERSION=`cat /tmp/VERSION` && \
|
|
|
|
TARBALL="bitcoin-${VERSION}-x86_64-linux-gnu.tar.gz" && \
|
|
|
|
chmod a+x /usr/local/bin/* && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y curl && \
|
|
|
|
cd /tmp && \
|
|
|
|
curl -O https://bitcoin.org/bin/bitcoin-core-${VERSION}/${TARBALL} && \
|
|
|
|
curl -O https://bitcoin.org/bin/bitcoin-core-${VERSION}/SHA256SUMS.asc && \
|
|
|
|
grep $TARBALL SHA256SUMS.asc | sha256sum -c && \
|
|
|
|
tar -zxvf $TARBALL && \
|
|
|
|
mv bitcoin-${VERSION}/bin/* /usr/local/bin/ && \
|
|
|
|
apt-get purge -y curl && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
|
|
|
VOLUME ["/data"]
|
|
|
|
ENV HOME /data
|
|
|
|
ENV DATA /data
|
|
|
|
WORKDIR /data
|
|
|
|
|
|
|
|
EXPOSE 8332 8333
|
|
|
|
|
|
|
|
ENTRYPOINT ["init"]
|