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.

27 lines
796 B

5 years ago
FROM debian:stable-slim
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
COPY ./bin /usr/local/bin
COPY ./VERSION /tmp
5 years ago
COPY ./CHECKSUM /tmp
5 years ago
RUN VERSION=`cat /tmp/VERSION` && \
chmod a+x /usr/local/bin/* && \
apt-get update && \
5 years ago
apt-get install -y curl && \
5 years ago
curl -L https://bitcoin.org/bin/bitcoin-core-${VERSION}/bitcoin-${VERSION}-x86_64-linux-gnu.tar.gz --output /tmp/prebuilt.tar.gz && \
5 years ago
echo "$(cat /tmp/CHECKSUM) /tmp/prebuilt.tar.gz" | sha256sum -c && \
5 years ago
tar -zxvf /tmp/prebuilt.tar.gz -C /tmp && \
mv /tmp/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"]