Bitcoind Dockerfile

From wikieduonline
Jump to navigation Jump to search

https://github.com/aws-solutions-library-samples/guidance-for-digital-assets-on-aws/blob/main/node/copilot/bitcoin-node/Dockerfile

FROM public.ecr.aws/lts/ubuntu:20.04_stable

ENV DEBIAN_FRONTEND=noninteractive 

RUN apt-get -y update && apt-get install -y --no-install-recommends \
        awscli \
        wget \
        ca-certificates \
        git \
        jq \
        python3 python3-dev python3-pip \
   && rm -rf /var/lib/apt/lists/*

USER root
WORKDIR /root

# bitcoind
RUN wget https://bitcoincore.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz && \ 
    tar -xzf bitcoin-22.0-x86_64-linux-gnu.tar.gz && \
    ln -s bitcoin-22.0 bitcoin && \
    rm bitcoin-22.0-x86_64-linux-gnu.tar.gz
COPY bitcoin.conf /root/

COPY start.sh /root/
RUN chmod +x /root/start.sh
 
EXPOSE 8332
EXPOSE 28332

# start
CMD ["bash", "-c", "ls -la && exec /root/start.sh"]

Bitcoind options

 -rest Accept public REST requests (default: 0)
-server Accept command line and JSON-RPC commands
-reindex Rebuild chain state and block index from the blk*.dat files on disk. This will also rebuild active optional indexes.
-rpcauth
-datadir=<dir> Specify data directory
-whitelist=
-listenonion Tor
-chain
-prune

Related

See also

Advertising: