diff --git a/Containerfile b/Containerfile index 738f70d..8e8b3f3 100644 --- a/Containerfile +++ b/Containerfile @@ -68,7 +68,7 @@ RUN $wget -P $license_dir $bitcoin_license_url ######################################################################################################################## # Final image ######################################################################################################################## -FROM cgr.dev/chainguard/glibc-dynamic as final +FROM cgr.dev/chainguard/glibc-dynamic:latest-dev as final ARG dist_dir license_dir ports # Install binaries @@ -82,4 +82,4 @@ VOLUME /var/lib/bitcoin EXPOSE $ports # Run entrypoint script -ENTRYPOINT ["/usr/local/bin/bitcoind"] +ENTRYPOINT ["/usr/local/bin/bitcoind", "-datadir=/var/lib/bitcoin"] diff --git a/README.md b/README.md index 3fe6981..1d961c3 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,10 @@ Because `bitcoind` supports so many options, it's best to configure it using a c A user-friendly config file generator can be found here: [https://jlopp.github.io/bitcoin-core-config-generator/](https://jlopp.github.io/bitcoin-core-config-generator/). ### Persistent Data -_A configuration file needs to be mounted and referenced with the `-conf` option._ The default path `bitcoind` will look at without setting `-conf=` is _/home/nonroot/.bitcoin/bitcoin.conf_. +*Important*: A configuration file should be mounted and referenced with the `-conf` option if it's not mounted in the default location. The default location `bitcoind` will look at without the +need to set `-conf=` is _/home/nonroot/.bitcoin/bitcoin.conf_. -The container's persistent data, including configuration and blockchain data should be mounted at _/var/lib/bitcoin_. Be sure to set your `datadir` option in your configuration file to _/var/lib/bitcoin_. +The container's persistent data, including configuration and blockchain data is located at _/var/lib/bitcoin_. If you're using something other than an anonymous volume, be sure to mount it at this location. Therefore, the simplest way to get the container up and running would be to mount your config file at _/home/nonroot/.bitcoin/bitcoin.conf_ and forego setting the `-conf` option in the command line.