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.

25 lines
757 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` && \
chmod a+x /usr/local/bin/* && \
apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates && \
curl -L https://bitcoin.org/bin/bitcoin-core-${VERSION}/bitcoin-${VERSION}-x86_64-linux-gnu.tar.gz --output /tmp/prebuilt.tar.gz && \
tar -zxvf /tmp/prebuilt.tar.gz -C /tmp && \
mv /tmp/bitcoin-${VERSION}/bin/* /usr/local/bin/ && \
apt-get purge -y curl ca-certificates && \
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"]