Bitcoind Dockerfile
Jump to navigation
Jump to search
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[edit]
-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[edit]
bitcoin.conf
bitcoind
- Bitcoind ports:
EXPOSE 8332 18332 18443 # RPC interface (mainnet, testnet & regnet respectively)
See also[edit]
bitcoind, .bitcoin/, bitcoin.conf, Dockerfile, Bitcoind ports( 8332 18332 18443 8333 18333 18444 ), -chain, -datadir, -server, --help
, Bitcoind logs, Bitcoind changelog- Bitcoin Core:
bitcoind, bitcoin-cli, bitcoin.conf
Bitcoind ports
Advertising: