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.

29 lines
826 B

5 years ago
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" && \
5 years ago
chmod a+x /usr/local/bin/* && \
apt-get update && \
5 years ago
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/ && \
5 years ago
apt-get purge -y curl && \
5 years ago
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"]