15 lines
638 B
Docker
15 lines
638 B
Docker
FROM alpine:latest
|
|
RUN wget https://bitcoin.org/bin/bitcoin-core-0.17.1/bitcoin-0.17.1-x86_64-linux-gnu.tar.gz
|
|
COPY sha512sum.txt /tmp/
|
|
RUN sha512sum -c /tmp/sha512sum.txt
|
|
|
|
FROM ubuntu:bionic
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y install libx11-xcb1 libx11-6 libxcb1 libfontconfig1 libfreetype6 xkb-data libdbus-1-3
|
|
COPY --from=0 bitcoin-0.17.1-x86_64-linux-gnu.tar.gz .
|
|
RUN tar xf bitcoin-0.17.1-x86_64-linux-gnu.tar.gz -C /opt
|
|
RUN find /opt/ -type f -name "bitcoin*" -exec ln -sv '{}' /usr/local/bin/ \;
|
|
COPY launch /launch
|
|
ENTRYPOINT sh /launch
|
|
LABEL maintainer="Andrey Arapov <andrey.arapov@nixaid.com>"
|