You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lnbook/code/docker/bitcoind-regtest/Dockerfile

17 lines
410 B
Docker

FROM bitcoind_base:latest
ADD bitcoind /bitcoind
WORKDIR /bitcoind
RUN ln -sf /dev/stdout /bitcoind/debug.log
EXPOSE 12001
CMD bitcoind -datadir=/bitcoind -daemon \
&& sleep 2 \
&& address=$(bitcoin-cli -datadir=/bitcoind getnewaddress) \
&& bitcoin-cli -datadir=/bitcoind generatetoaddress 101 $address \
&& while sleep 10 \
; do bitcoin-cli -datadir=/bitcoind generatetoaddress 1 $address \
; done